Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/superv.git] / Makefile.in
1 #  Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 #
4 #  This library is free software; you can redistribute it and/or
5 #  modify it under the terms of the GNU Lesser General Public
6 #  License as published by the Free Software Foundation; either
7 #  version 2.1 of the License.
8 #
9 #  This library is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 #  Lesser General Public License for more details.
13 #
14 #  You should have received a copy of the GNU Lesser General Public
15 #  License along with this library; if not, write to the Free Software
16 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 #  See http://www.salome-platform.org/
19 #
20 # -* Makefile *- 
21 #
22 # Author : Patrick GOLDBRONN (CEA)
23 # Date : 28/06/2001
24 # $Header$
25 #
26
27 # source path
28 top_srcdir=@top_srcdir@
29 top_builddir=.
30 srcdir=@srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
32
33
34 @COMMENCE@
35
36 SUBDIRS = idl src doc adm_local
37
38 RESOURCES_FILES = \
39 components.png \
40 edit.png \
41 export.gif \
42 import.gif \
43 kill.png \
44 modify.png \
45 ModuleSupervision.png \
46 reload.png \
47 resources.png \
48 run.png \
49 steps.png \
50 SUPERV_en.xml \
51 SUPERV_fr.xml \
52 SUPERV.config \
53 SUPERVCatalog.xml \
54 SalomeApp.xml \
55 suspend-resume.gif \
56 Superv_tree_superv.png
57
58 BIN_SCRIPT= \
59 VERSION
60
61 # copy header files in common directory
62 ifeq ($(HAVE_SSTREAM),yes)
63   include_list=include/salome/SALOMEconfig.h
64 else
65   include_list=include/salome/SALOMEconfig.h include/salome/sstream
66 endif
67
68 inc: idl $(include_list)
69
70 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
71         -$(RM) $@
72         $(LN_S) ../../$< $@
73
74 # test if SALOMEconfig.h has changed (contents)
75 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
76         @if ! [ -a $@ ]; then \
77           cp -p -f $< $@;        \
78         fi;                   \
79         if ! cmp $< $@; then  \
80           cp -p -f $< $@;        \
81         fi;                   \
82
83 include/salome/sstream: salome_adm/unix/sstream
84         -$(RM) $@
85         $(LN_S) ../../$< $@
86
87 depend: depend_idl
88
89 depend_idl:
90         (cd idl ; $(MAKE) $@) || exit 1
91
92 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
93 #doc:
94 #       (cd doc && $(MAKE) $@) || exit 1
95
96 install-end:
97 # finish libtool install
98 #       @$(LT) --mode=finish $(libdir)
99
100 install-include: $(include_list)
101         $(INSTALL) -d  $(includedir)
102         @for f in X $(include_list); do                         \
103            if test $$f != X; then                               \
104              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
105            fi;                                                  \
106         done
107
108 # install script in $(bindir) :
109 install-bin: $(BIN_SCRIPT)
110         $(INSTALL) -d  $(bindir)
111         if test $(BIN_SCRIPT)X != X; then                       \
112                 $(INSTALL_PROGRAM) $^ $(bindir);                \
113         fi
114
115 uninstall: uninstall-idl
116
117 uninstall-idl:
118         $(RM) $(idldir)/*.idl
119
120 distclean: distclean-other
121
122 distclean-other:
123         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
124         -$(RM) salome_adm/unix/make_* 
125         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
126         -$(RM) config.cache config.log config.status 
127
128 @MODULE@
129
130 install: install-bin install-include install-end
131