1 # Copyright (C) 2005 CEA/DEN, EDF R&D
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 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # Author : Patrick GOLDBRONN (CEA)
27 top_srcdir=@top_srcdir@
30 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
38 PYCALCULATORCatalog.xml \
45 # copy header files in common directory
46 include_list = include/salome/SALOMEconfig.h
48 ifneq ($(HAVE_SSTREAM),yes)
49 include_list += include/salome/sstream
52 inc: idl $(include_list)
54 bin: bin/salome/VERSION
56 bin/salome/VERSION : bin/VERSION
60 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
64 # test if SALOMEconfig.h has changed (contents)
65 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
66 @if ! [ -a $@ ]; then \
69 if ! cmp $< $@; then \
73 include/salome/sstream: salome_adm/unix/sstream
80 (cd idl ; $(MAKE) $@) || exit 1
82 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
84 # (cd doc && $(MAKE) $@) || exit 1
87 # finish libtool install
88 # @$(LT) --mode=finish $(libdir)
90 install-include: $(include_list)
91 $(INSTALL) -d $(includedir)
92 @for f in X $(include_list); do \
93 if test $$f != X; then \
94 ($(INSTALL_DATA) $$f $(includedir)/. || exit 1); \
98 # install script in $(bindir) :
99 install-bin: $(BIN_SCRIPT)
100 $(INSTALL) -d $(bindir)
101 if test $(BIN_SCRIPT)X != X; then \
102 $(INSTALL_PROGRAM) $^ $(bindir); \
105 uninstall: uninstall-idl
108 $(RM) $(idldir)/*.idl
110 distclean: distclean-other
113 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
114 -$(RM) salome_adm/unix/make_*
115 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
116 -$(RM) config.cache config.log config.status
120 install: install-bin install-include install-end