Salome HOME
merge from branch BR_V5_DEV
[modules/kernel.git] / DEPRECATED / Makefile.in
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 # -* Makefile *- 
23 # Author : Patrick GOLDBRONN (CEA)
24 # Date : 28/06/2001
25 # $Header$
26 # source path
27 #
28 top_srcdir=@top_srcdir@
29 top_builddir=.
30 srcdir=@srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
32
33
34 @COMMENCE@
35
36 SUBDIRS = idl src doc salome_adm
37
38 RESOURCES_FILES = \
39 CatalogDataType.xml \
40 KERNELCatalog.xml \
41 CatalogResources.xml \
42 close.png \
43 config \
44 channel.cfg \
45 SALOMEDS_Resources
46
47 BIN_SCRIPT= \
48 runIDLparser \
49 VERSION \
50 orbmodule.py \
51 runSalome.py \
52 killSalome.py \
53 killSalomeWithPort.py \
54 runSalome \
55 runSalome.csh \
56 runNS.sh \
57 createAppli.sh \
58 launchConfigureParser.py \
59 salome.launch \
60 envSalome.py \
61 salomeConsole.py \
62 showNS.py \
63 addToKillList.py
64
65 # copy header files in common directory
66 include_list=\
67         include/salome/SALOMEconfig.h
68
69 inc: idl $(include_list)
70
71 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
72         -$(RM) $@
73         $(LN_S) ../../$< $@
74
75 # test if SALOMEconfig.h has changed (contents)
76 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
77         @if ! [ -a $@ ]; then \
78           cp -p $< $@;        \
79         fi;                   \
80         if ! cmp $< $@; then  \
81           cp -p $< $@;        \
82         fi;                   \
83
84 depend: depend_idl
85
86 depend_idl:
87         (cd idl ; $(MAKE) $@) || exit 1
88
89 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
90
91
92 DOCFILES=\
93         README.FIRST.html
94
95 rstdoc: $(DOCFILES)
96         (cd doc && $(MAKE) $@) || exit 1
97
98
99 # Install make_commence make_conclude ... for other modules
100 install-make:
101         ($(INSTALL) -d  $(incmakedir) || exit 1);
102         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
103         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
104
105
106 install-end:
107 # finish libtool install
108 #       @$(LT) --mode=finish $(libdir)
109
110 install-include: $(include_list)
111         $(INSTALL) -d  $(includedir)
112         @for f in X $(include_list); do                         \
113            if test $$f != X; then                               \
114              (cp -p $$f $(includedir) || exit 1);               \
115            fi;                                                  \
116         done
117
118 # install script in $(bindir) :
119 install-appliskel:
120         $(INSTALL) -d  $(bindir)
121         if test -d $(top_builddir)/bin/salome/appliskel; then           \
122             cp -rp $(top_builddir)/bin/salome/appliskel $(bindir);      \
123         fi;
124
125 install-bin: $(BIN_SCRIPT)
126         $(INSTALL) -d  $(bindir)
127         $(INSTALL_PROGRAM) $^ $(bindir)
128
129 # install Plugin file
130 install-plugin: $(top_builddir)/share/salome/resources/Plugin
131         ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
132
133 uninstall: uninstall-idl
134
135 uninstall-idl:
136         $(RM) $(idldir)/*.idl
137
138 distclean: distclean-other
139
140 distclean-other:
141         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
142         -$(RM) salome_adm/unix/make_* 
143         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
144         -$(RM) config.cache config.log config.status 
145
146 @MODULE@
147
148 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
149         cp -f $< $@ ; \
150
151 resources: $(top_builddir)/share/salome/resources/Plugin
152
153 install: install-bin install-appliskel install-include install-make install-plugin install-end