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/
22 # Author : Patrick GOLDBRONN (CEA)
28 top_srcdir=@top_srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
36 SUBDIRS = idl src doc adm_local
45 ModuleSupervision.png \
56 Superv_tree_superv.png
61 # copy header files in common directory
62 ifeq ($(HAVE_SSTREAM),yes)
63 include_list=include/salome/SALOMEconfig.h
65 include_list=include/salome/SALOMEconfig.h include/salome/sstream
68 inc: idl $(include_list)
70 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
74 # test if SALOMEconfig.h has changed (contents)
75 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
76 @if ! [ -a $@ ]; then \
79 if ! cmp $< $@; then \
83 include/salome/sstream: salome_adm/unix/sstream
90 (cd idl ; $(MAKE) $@) || exit 1
92 # 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 # finish libtool install
98 # @$(LT) --mode=finish $(libdir)
100 install-include: $(include_list)
101 $(INSTALL) -d $(includedir)
102 @for f in X $(include_list); do \
103 if test $$f != X; then \
104 ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \
108 # install script in $(bindir) :
109 install-bin: $(BIN_SCRIPT)
110 $(INSTALL) -d $(bindir)
111 if test $(BIN_SCRIPT)X != X; then \
112 $(INSTALL_PROGRAM) $^ $(bindir); \
115 uninstall: uninstall-idl
118 $(RM) $(idldir)/*.idl
120 distclean: distclean-other
123 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
124 -$(RM) salome_adm/unix/make_*
125 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
126 -$(RM) config.cache config.log config.status
130 install: install-bin install-include install-end