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