]> SALOME platform Git repositories - samples/pycalculator.git/blob - Makefile.in
Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[samples/pycalculator.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 : Patrick GOLDBRONN (CEA)
22 # Date : 28/06/2001
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
36
37 RESOURCES_FILES = \
38 PYCALCULATORCatalog.xml \
39 SalomeApp.xml \
40 PYCALCULATOR.png
41
42 BIN_SCRIPT= \
43 VERSION
44
45 # copy header files in common directory
46 include_list = include/salome/SALOMEconfig.h
47
48 ifneq ($(HAVE_SSTREAM),yes)
49         include_list += include/salome/sstream
50 endif
51
52 inc: idl $(include_list)
53
54 bin: bin/salome/VERSION
55
56 bin/salome/VERSION : bin/VERSION
57         -$(RM) $@
58         $(LN_S) ../../$< $@
59
60 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
61         -$(RM) $@
62         $(LN_S) ../../$< $@
63
64 # test if SALOMEconfig.h has changed (contents)
65 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
66         @if ! [ -a $@ ]; then \
67           cp -p $< $@;        \
68         fi;                   \
69         if ! cmp $< $@; then  \
70           cp -p $< $@;        \
71         fi;                   \
72
73 include/salome/sstream: salome_adm/unix/sstream
74         -$(RM) $@
75         $(LN_S) ../../$< $@
76
77 depend: depend_idl
78
79 depend_idl:
80         (cd idl ; $(MAKE) $@) || exit 1
81
82 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
83 #doc:
84 #       (cd doc && $(MAKE) $@) || exit 1
85
86 install-end:
87 # finish libtool install
88 #       @$(LT) --mode=finish $(libdir)
89
90 install-include: $(include_list)
91         $(INSTALL) -d  $(includedir)
92         @for f in X $(include_list); do                         \
93            if test $$f != X; then                               \
94              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
95            fi;                                                  \
96         done
97
98 # install script in $(bindir) :
99 install-bin: $(BIN_SCRIPT)
100         $(INSTALL) -d  $(bindir)
101         if test $(BIN_SCRIPT)X != X; then                       \
102                 $(INSTALL_PROGRAM) $^ $(bindir);                \
103         fi
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