]> SALOME platform Git repositories - samples/pycalculator.git/blob - Makefile.in
Salome HOME
Join modifications from branch OCC_debug_for_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/
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:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
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 ifeq ($(HAVE_SSTREAM),yes)
47   include_list=include/salome/SALOMEconfig.h
48 else
49   include_list=include/salome/SALOMEconfig.h include/salome/sstream
50 endif
51
52 inc: idl $(include_list)
53
54 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
55         -$(RM) $@
56         $(LN_S) ../../$< $@
57
58 # test if SALOMEconfig.h has changed (contents)
59 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
60         @if ! [ -a $@ ]; then \
61           cp -p $< $@;        \
62         fi;                   \
63         if ! cmp $< $@; then  \
64           cp -p $< $@;        \
65         fi;                   \
66
67 include/salome/sstream: salome_adm/unix/sstream
68         -$(RM) $@
69         $(LN_S) ../../$< $@
70
71 depend: depend_idl
72
73 depend_idl:
74         (cd idl ; $(MAKE) $@) || exit 1
75
76 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
77 #doc:
78 #       (cd doc && $(MAKE) $@) || exit 1
79
80 install-end:
81 # finish libtool install
82 #       @$(LT) --mode=finish $(libdir)
83
84 install-include: $(include_list)
85         $(INSTALL) -d  $(includedir)
86         @for f in X $(include_list); do                         \
87            if test $$f != X; then                               \
88              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
89            fi;                                                  \
90         done
91
92 # install script in $(bindir) :
93 install-bin: $(BIN_SCRIPT)
94         $(INSTALL) -d  $(bindir)
95         if test $(BIN_SCRIPT)X != X; then                       \
96                 $(INSTALL_PROGRAM) $^ $(bindir);                \
97         fi
98
99 uninstall: uninstall-idl
100
101 uninstall-idl:
102         $(RM) $(idldir)/*.idl
103
104 distclean: distclean-other
105
106 distclean-other:
107         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
108         -$(RM) salome_adm/unix/make_* 
109         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
110         -$(RM) config.cache config.log config.status 
111
112 @MODULE@
113
114 install: install-bin install-include install-end
115