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:${KERNEL_ROOT_DIR}/idl/salome
36 SUBDIRS = idl src doc adm_local
42 # copy header files in common directory
43 ifeq ($(HAVE_SSTREAM),yes)
44 include_list=include/salome/SALOMEconfig.h
46 include_list=include/salome/SALOMEconfig.h include/salome/sstream
49 inc: idl $(include_list)
51 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
55 # test if SALOMEconfig.h has changed (contents)
56 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
57 @if ! [ -a $@ ]; then \
60 if ! cmp $< $@; then \
64 include/salome/sstream: salome_adm/unix/sstream
71 (cd idl ; $(MAKE) $@) || exit 1
73 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
75 # (cd doc && $(MAKE) $@) || exit 1
78 # finish libtool install
79 # @$(LT) --mode=finish $(libdir)
81 install-include: $(include_list)
82 $(INSTALL) -d $(includedir)
83 @for f in X $(include_list); do \
84 if test $$f != X; then \
85 ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \
89 # install script in $(bindir) :
90 install-bin: $(BIN_SCRIPT)
91 $(INSTALL) -d $(bindir)
92 if test $(BIN_SCRIPT)X != X; then \
93 $(INSTALL_PROGRAM) $^ $(bindir); \
96 uninstall: uninstall-idl
101 distclean: distclean-other
104 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
105 -$(RM) salome_adm/unix/make_*
106 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
107 -$(RM) config.cache config.log config.status
111 install: install-bin install-include install-end