Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/kernel.git] / DEPRECATED / Makefile.in
1 # Copyright (C) 2007-2012  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
23 # -* Makefile *- 
24 # Author : Patrick GOLDBRONN (CEA)
25 # Date : 28/06/2001
26 # $Header$
27 # source path
28 #
29 top_srcdir=@top_srcdir@
30 top_builddir=.
31 srcdir=@srcdir@
32 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
33
34
35 @COMMENCE@
36
37 SUBDIRS = idl src doc salome_adm
38
39 RESOURCES_FILES = \
40 CatalogDataType.xml \
41 KERNELCatalog.xml \
42 CatalogResources.xml \
43 close.png \
44 config \
45 channel.cfg \
46 SALOMEDS_Resources
47
48 BIN_SCRIPT= \
49 runIDLparser \
50 VERSION \
51 orbmodule.py \
52 runSalome.py \
53 killSalome.py \
54 killSalomeWithPort.py \
55 runSalome \
56 runSalome.csh \
57 runNS.sh \
58 createAppli.sh \
59 launchConfigureParser.py \
60 salome.launch \
61 envSalome.py \
62 salomeConsole.py \
63 showNS.py \
64 addToKillList.py
65
66 # copy header files in common directory
67 include_list=\
68         include/salome/SALOMEconfig.h
69
70 inc: idl $(include_list)
71
72 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
73         -$(RM) $@
74         $(LN_S) ../../$< $@
75
76 # test if SALOMEconfig.h has changed (contents)
77 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
78         @if ! [ -a $@ ]; then \
79           cp -p $< $@;        \
80         fi;                   \
81         if ! cmp $< $@; then  \
82           cp -p $< $@;        \
83         fi;                   \
84
85 depend: depend_idl
86
87 depend_idl:
88         (cd idl ; $(MAKE) $@) || exit 1
89
90 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
91
92
93 DOCFILES=\
94         README.FIRST.html
95
96 rstdoc: $(DOCFILES)
97         (cd doc && $(MAKE) $@) || exit 1
98
99
100 # Install make_commence make_conclude ... for other modules
101 install-make:
102         ($(INSTALL) -d  $(incmakedir) || exit 1);
103         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
104         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
105
106
107 install-end:
108 # finish libtool install
109 #       @$(LT) --mode=finish $(libdir)
110
111 install-include: $(include_list)
112         $(INSTALL) -d  $(includedir)
113         @for f in X $(include_list); do                         \
114            if test $$f != X; then                               \
115              (cp -p $$f $(includedir) || exit 1);               \
116            fi;                                                  \
117         done
118
119 # install script in $(bindir) :
120 install-appliskel:
121         $(INSTALL) -d  $(bindir)
122         if test -d $(top_builddir)/bin/salome/appliskel; then           \
123             cp -rp $(top_builddir)/bin/salome/appliskel $(bindir);      \
124         fi;
125
126 install-bin: $(BIN_SCRIPT)
127         $(INSTALL) -d  $(bindir)
128         $(INSTALL_PROGRAM) $^ $(bindir)
129
130 # install Plugin file
131 install-plugin: $(top_builddir)/share/salome/resources/Plugin
132         ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
133
134 uninstall: uninstall-idl
135
136 uninstall-idl:
137         $(RM) $(idldir)/*.idl
138
139 distclean: distclean-other
140
141 distclean-other:
142         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
143         -$(RM) salome_adm/unix/make_* 
144         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
145         -$(RM) config.cache config.log config.status 
146
147 @MODULE@
148
149 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
150         cp -f $< $@ ; \
151
152 resources: $(top_builddir)/share/salome/resources/Plugin
153
154 install: install-bin install-appliskel install-include install-make install-plugin install-end