1 # Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
2 # PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com#
20 # Author : Patrick GOLDBRONN (CEA)
26 top_srcdir=@top_srcdir@
29 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
34 SUBDIRS = idl src doc salome_adm
39 CatalogResources.xml \
51 killSalomeWithPort.py \
56 launchConfigureParser.py \
63 # copy header files in common directory
65 include/salome/SALOMEconfig.h
67 inc: idl $(include_list)
69 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
73 # test if SALOMEconfig.h has changed (contents)
74 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
75 @if ! [ -a $@ ]; then \
78 if ! cmp $< $@; then \
85 (cd idl ; $(MAKE) $@) || exit 1
87 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
94 (cd doc && $(MAKE) $@) || exit 1
97 # Install make_commence make_conclude ... for other modules
99 ($(INSTALL) -d $(incmakedir) || exit 1);
100 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
101 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
105 # finish libtool install
106 # @$(LT) --mode=finish $(libdir)
108 install-include: $(include_list)
109 $(INSTALL) -d $(includedir)
110 @for f in X $(include_list); do \
111 if test $$f != X; then \
112 (cp -p $$f $(includedir) || exit 1); \
116 # install script in $(bindir) :
118 $(INSTALL) -d $(bindir)
119 if test -d $(top_builddir)/bin/salome/appliskel; then \
120 cp -rp $(top_builddir)/bin/salome/appliskel $(bindir); \
123 install-bin: $(BIN_SCRIPT)
124 $(INSTALL) -d $(bindir)
125 $(INSTALL_PROGRAM) $^ $(bindir)
127 # install Plugin file
128 install-plugin: $(top_builddir)/share/salome/resources/Plugin
129 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
131 uninstall: uninstall-idl
134 $(RM) $(idldir)/*.idl
136 distclean: distclean-other
139 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
140 -$(RM) salome_adm/unix/make_*
141 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
142 -$(RM) config.cache config.log config.status
146 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
149 resources: $(top_builddir)/share/salome/resources/Plugin
151 install: install-bin install-appliskel install-include install-make install-plugin install-end