Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[samples/hello.git] / Makefile.in
1 #  Copyright (C) 2005  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 # -* Makefile *- 
20 #
21 # Author : C. Caremoli
22 # Date : 10/10/2003
23 # $Header$
24 #
25
26 # source path
27 top_srcdir=@top_srcdir@
28 top_builddir=.
29 srcdir=@srcdir@
30 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
31
32
33 @COMMENCE@
34
35 SUBDIRS = idl src adm_local
36
37 RESOURCES_FILES = HELLOCatalog.xml HELLO.png ExecHELLO.png SalomeApp.xml
38
39 BIN_SCRIPT= VERSION runAppli myrunSalome.py
40
41 # copy header files in common directory
42
43 include_list = include/salome/SALOMEconfig.h \
44                include/salome/HELLO_version.h
45
46 ifneq ($(HAVE_SSTREAM),yes)
47         include_list += include/salome/sstream
48 endif
49
50 inc: idl $(include_list)
51
52 bin: bin/salome/VERSION
53
54 bin/salome/VERSION : bin/VERSION
55         -$(RM) $@
56         $(LN_S) ../../$< $@
57
58 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
59         -$(RM) $@
60         $(LN_S) ../../$< $@
61
62 # test if SALOMEconfig.h has changed (contents)
63 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
64         @if ! [ -a $@ ]; then \
65           cp -p $< $@;        \
66         fi;                   \
67         if ! cmp $< $@; then  \
68           cp -p $< $@;        \
69         fi;                   \
70
71 include/salome/sstream: salome_adm/unix/sstream
72         -$(RM) $@
73         $(LN_S) ../../$< $@
74
75 include/salome/HELLO_version.h: HELLO_version.h
76         -$(RM) $@
77         $(LN_S) ../../$< $@
78
79 depend: depend_idl
80
81 depend_idl:
82         (cd idl ; $(MAKE) $@) || exit 1
83
84 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
85 #doc:
86 #       (cd doc && $(MAKE) $@) || exit 1
87
88 install-end:
89 # finish libtool install
90 #       @$(LT) --mode=finish $(libdir)
91
92 install-include: $(include_list)
93         $(INSTALL) -d  $(includedir)
94         @for f in X $(include_list); do                         \
95            if test $$f != X; then                               \
96              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
97            fi;                                                  \
98         done
99
100 # install script in $(bindir) :
101 install-bin: $(BIN_SCRIPT)
102         $(INSTALL) -d  $(bindir)
103         $(INSTALL_PROGRAM) $^ $(bindir)
104
105 uninstall: uninstall-idl
106
107 uninstall-idl:
108         $(RM) $(idldir)/*.idl
109
110 distclean: distclean-other
111
112 distclean-other:
113         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
114         -$(RM) salome_adm/unix/make_* 
115         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
116         -$(RM) config.cache config.log config.status 
117
118 @MODULE@
119
120 install: install-bin install-include install-end
121