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/
21 # Author : C. Caremoli
27 top_srcdir=@top_srcdir@
30 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
34 SUBDIRS = idl src adm_local
36 RESOURCES_FILES = PYHELLOCatalog.xml PYHELLO.png PYHELLO_en.xml \
37 ExecPYHELLO.png SalomeApp.xml
39 BIN_SCRIPT= VERSION runAppli myrunSalome.py
41 # copy header files in common directory
42 ifeq ($(HAVE_SSTREAM),yes)
43 include_list=include/salome/SALOMEconfig.h
45 include_list=include/salome/SALOMEconfig.h include/salome/sstream
48 inc: idl $(include_list)
50 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
54 # test if SALOMEconfig.h has changed (contents)
55 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
56 @if ! [ -a $@ ]; then \
59 if ! cmp $< $@; then \
63 include/salome/sstream: salome_adm/unix/sstream
70 (cd idl ; $(MAKE) $@) || exit 1
72 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
74 # (cd doc && $(MAKE) $@) || exit 1
77 # finish libtool install
78 # @$(LT) --mode=finish $(libdir)
80 install-include: $(include_list)
81 $(INSTALL) -d $(includedir)
82 @for f in X $(include_list); do \
83 if test $$f != X; then \
84 ($(INSTALL_DATA) $$f $(includedir)/. || exit 1); \
88 # install script in $(bindir) :
89 install-bin: $(BIN_SCRIPT)
90 $(INSTALL) -d $(bindir)
91 $(INSTALL_PROGRAM) $^ $(bindir)
93 uninstall: uninstall-idl
98 distclean: distclean-other
101 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
102 -$(RM) salome_adm/unix/make_*
103 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
104 -$(RM) config.cache config.log config.status
108 install: install-bin install-include install-end