1 # Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 # Author : Patrick GOLDBRONN (CEA)
29 top_srcdir=@top_srcdir@
32 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
37 SUBDIRS = idl src doc salome_adm
42 CatalogResources.xml \
54 killSalomeWithPort.py \
59 launchConfigureParser.py \
66 # copy header files in common directory
68 include/salome/SALOMEconfig.h
70 inc: idl $(include_list)
72 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
76 # test if SALOMEconfig.h has changed (contents)
77 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
78 @if ! [ -a $@ ]; then \
81 if ! cmp $< $@; then \
88 (cd idl ; $(MAKE) $@) || exit 1
90 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
97 (cd doc && $(MAKE) $@) || exit 1
100 # Install make_commence make_conclude ... for other modules
102 ($(INSTALL) -d $(incmakedir) || exit 1);
103 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
104 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
108 # finish libtool install
109 # @$(LT) --mode=finish $(libdir)
111 install-include: $(include_list)
112 $(INSTALL) -d $(includedir)
113 @for f in X $(include_list); do \
114 if test $$f != X; then \
115 (cp -p $$f $(includedir) || exit 1); \
119 # install script in $(bindir) :
121 $(INSTALL) -d $(bindir)
122 if test -d $(top_builddir)/bin/salome/appliskel; then \
123 cp -rp $(top_builddir)/bin/salome/appliskel $(bindir); \
126 install-bin: $(BIN_SCRIPT)
127 $(INSTALL) -d $(bindir)
128 $(INSTALL_PROGRAM) $^ $(bindir)
130 # install Plugin file
131 install-plugin: $(top_builddir)/share/salome/resources/Plugin
132 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
134 uninstall: uninstall-idl
137 $(RM) $(idldir)/*.idl
139 distclean: distclean-other
142 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
143 -$(RM) salome_adm/unix/make_*
144 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
145 -$(RM) config.cache config.log config.status
149 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
152 resources: $(top_builddir)/share/salome/resources/Plugin
154 install: install-bin install-appliskel install-include install-make install-plugin install-end