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:./resources:@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
63 include_list = include/salome/SALOMEconfig.h \
64 include/salome/SUPERV_version.h
66 ifneq ($(HAVE_SSTREAM),yes)
67 include_list += include/salome/sstream
70 inc: idl $(include_list)
72 bin: bin/salome/VERSION
74 bin/salome/VERSION : bin/VERSION
78 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
82 # test if SALOMEconfig.h has changed (contents)
83 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
84 @if ! [ -a $@ ]; then \
87 if ! cmp $< $@; then \
91 include/salome/sstream: salome_adm/unix/sstream
95 include/salome/SUPERV_version.h: SUPERV_version.h
102 (cd idl ; $(MAKE) $@) || exit 1
104 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
106 # (cd doc && $(MAKE) $@) || exit 1
109 # finish libtool install
110 # @$(LT) --mode=finish $(libdir)
112 install-include: $(include_list)
113 $(INSTALL) -d $(includedir)
114 @for f in X $(include_list); do \
115 if test $$f != X; then \
116 ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \
120 # install script in $(bindir) :
121 install-bin: $(BIN_SCRIPT)
122 $(INSTALL) -d $(bindir)
123 if test $(BIN_SCRIPT)X != X; then \
124 $(INSTALL_PROGRAM) $^ $(bindir); \
127 uninstall: uninstall-idl
130 $(RM) $(idldir)/*.idl
132 distclean: distclean-other
135 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
136 -$(RM) salome_adm/unix/make_*
137 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
138 -$(RM) config.cache config.log config.status
141 (cd doc && $(MAKE) $(AM_MAKEFLAGS) usr_docs)
146 (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs)
150 install: install-bin install-include install-end