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