Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[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/ or email : webmaster.salome@opencascade.com
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:./bin/salome:./resources:@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
63 include_list = include/salome/SALOMEconfig.h \
64                include/salome/SUPERV_version.h
65
66 ifneq ($(HAVE_SSTREAM),yes)
67         include_list += include/salome/sstream
68 endif
69
70 inc: idl $(include_list)
71
72 bin: bin/salome/VERSION
73
74 bin/salome/VERSION : bin/VERSION
75         -$(RM) $@
76         $(LN_S) ../../$< $@
77
78 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
79         -$(RM) $@
80         $(LN_S) ../../$< $@
81
82 # test if SALOMEconfig.h has changed (contents)
83 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
84         @if ! [ -a $@ ]; then \
85           cp -p -f $< $@;        \
86         fi;                   \
87         if ! cmp $< $@; then  \
88           cp -p -f $< $@;        \
89         fi;                   \
90
91 include/salome/sstream: salome_adm/unix/sstream
92         -$(RM) $@
93         $(LN_S) ../../$< $@
94
95 include/salome/SUPERV_version.h: SUPERV_version.h
96         -$(RM) $@
97         $(LN_S) ../../$< $@
98
99 depend: depend_idl
100
101 depend_idl:
102         (cd idl ; $(MAKE) $@) || exit 1
103
104 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
105 #doc:
106 #       (cd doc && $(MAKE) $@) || exit 1
107
108 install-end:
109 # finish libtool install
110 #       @$(LT) --mode=finish $(libdir)
111
112 install-include: $(include_list)
113         $(INSTALL) -d  $(includedir)
114         @for f in X $(include_list); do                         \
115            if test $$f != X; then                               \
116              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
117            fi;                                                  \
118         done
119
120 # install script in $(bindir) :
121 install-bin: $(BIN_SCRIPT)
122         $(INSTALL) -d  $(bindir)
123         if test $(BIN_SCRIPT)X != X; then                       \
124                 $(INSTALL_PROGRAM) $^ $(bindir);                \
125         fi
126
127 uninstall: uninstall-idl
128
129 uninstall-idl:
130         $(RM) $(idldir)/*.idl
131
132 distclean: distclean-other
133
134 distclean-other:
135         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
136         -$(RM) salome_adm/unix/make_* 
137         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
138         -$(RM) config.cache config.log config.status 
139
140 @MODULE@
141
142 install: install-bin install-include install-end
143