1 # Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # Author : Patrick GOLDBRONN (CEA)
28 top_srcdir=@top_srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
36 SUBDIRS = idl src doc adm_local
41 # copy header files in common directory
43 include_list = include/salome/SALOMEconfig.h \
44 include/salome/VISU_version.h
46 ifneq ($(HAVE_SSTREAM),yes)
47 include_list += include/salome/sstream
50 inc: idl $(include_list)
52 bin: bin/salome/VERSION
54 bin/salome/VERSION : bin/VERSION
58 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
62 # test if SALOMEconfig.h has changed (contents)
63 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
64 @if ! [ -a $@ ]; then \
67 if ! cmp $< $@; then \
71 include/salome/sstream: salome_adm/unix/sstream
75 include/salome/VISU_version.h: VISU_version.h
82 (cd idl ; $(MAKE) $@) || exit 1
84 resources: share/salome/resources/VISUCatalog.xml
86 share/salome/resources/VISUCatalog.xml: VISUCatalog.xml
89 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
91 # (cd doc && $(MAKE) $@) || exit 1
94 # finish libtool install
95 # @$(LT) --mode=finish $(libdir)
97 install-include: $(include_list)
98 $(INSTALL) -d $(includedir)
99 @for f in X $(include_list); do \
100 if test $$f != X; then \
101 ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \
105 # install script in $(bindir) :
106 install-bin: $(BIN_SCRIPT)
107 $(INSTALL) -d $(bindir)
108 if test $(BIN_SCRIPT)X != X; then \
109 $(INSTALL_PROGRAM) $^ $(bindir); \
112 uninstall: uninstall-idl
115 $(RM) $(idldir)/*.idl
117 distclean: distclean-other
120 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
121 -$(RM) salome_adm/unix/make_*
122 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
123 -$(RM) config.cache config.log config.status
127 install: install-bin install-include install-end
129 install-resources: install-catalog
131 install-catalog: share/salome/resources/VISUCatalog.xml
132 $(INSTALL) -d $(datadir)/resources
133 $(INSTALL_DATA) $< $(datadir)/resources/.