1 # Copyright (C) 2007-2008 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.
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
23 # Author : Patrick GOLDBRONN (CEA)
28 top_srcdir=@top_srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
36 SUBDIRS = idl src doc salome_adm
41 CatalogResources.xml \
53 killSalomeWithPort.py \
58 launchConfigureParser.py \
65 # copy header files in common directory
67 include/salome/SALOMEconfig.h
69 inc: idl $(include_list)
71 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
75 # test if SALOMEconfig.h has changed (contents)
76 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
77 @if ! [ -a $@ ]; then \
80 if ! cmp $< $@; then \
87 (cd idl ; $(MAKE) $@) || exit 1
89 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
96 (cd doc && $(MAKE) $@) || exit 1
99 # Install make_commence make_conclude ... for other modules
101 ($(INSTALL) -d $(incmakedir) || exit 1);
102 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
103 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
107 # finish libtool install
108 # @$(LT) --mode=finish $(libdir)
110 install-include: $(include_list)
111 $(INSTALL) -d $(includedir)
112 @for f in X $(include_list); do \
113 if test $$f != X; then \
114 (cp -p $$f $(includedir) || exit 1); \
118 # install script in $(bindir) :
120 $(INSTALL) -d $(bindir)
121 if test -d $(top_builddir)/bin/salome/appliskel; then \
122 cp -rp $(top_builddir)/bin/salome/appliskel $(bindir); \
125 install-bin: $(BIN_SCRIPT)
126 $(INSTALL) -d $(bindir)
127 $(INSTALL_PROGRAM) $^ $(bindir)
129 # install Plugin file
130 install-plugin: $(top_builddir)/share/salome/resources/Plugin
131 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
133 uninstall: uninstall-idl
136 $(RM) $(idldir)/*.idl
138 distclean: distclean-other
141 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
142 -$(RM) salome_adm/unix/make_*
143 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
144 -$(RM) config.cache config.log config.status
148 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
151 resources: $(top_builddir)/share/salome/resources/Plugin
153 install: install-bin install-appliskel install-include install-make install-plugin install-end