Salome HOME
Merge with BR_V300_lcrm branch.
[modules/kernel.git] / Makefile.in
1 # -* Makefile *- 
2 #
3 # Author : Patrick GOLDBRONN (CEA)
4 # Date : 28/06/2001
5 # $Header$
6 #
7
8 # source path
9 top_srcdir=@top_srcdir@
10 top_builddir=.
11 srcdir=@srcdir@
12 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
13
14
15 @COMMENCE@
16
17 SUBDIRS = idl src examples doc salome_adm
18
19 RESOURCES_FILES = \
20 CatalogDataType.xml \
21 KERNELCatalog.xml \
22 CatalogResources.xml \
23 close.png \
24 config \
25 channel.cfg \
26 SALOMEDS_Resources
27
28 BIN_SCRIPT= \
29 runIDLparser \
30 VERSION \
31 orbmodule.py \
32 runSalome.py \
33 killSalome.py \
34 killSalomeWithPort.py \
35 runSalome \
36 runSalome.csh \
37 runNS.sh \
38 createAppli.sh \
39 launchConfigureParser.py \
40 salome.launch \
41 envSalome.py \
42 salomeConsole.py \
43 showNS.py \
44 addToKillList.py
45
46 # copy header files in common directory
47 OWN_CONFIG_H=@OWN_CONFIG_H@
48
49 ifeq ($(OWN_CONFIG_H),yes)
50     ifeq ($(HAVE_SSTREAM),yes)
51         include_list=include/salome/SALOMEconfig.h include/salome/config.h
52     else
53         include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
54     endif
55 else
56     ifeq ($(HAVE_SSTREAM),yes)
57         include_list=include/salome/SALOMEconfig.h
58     else
59         include_list=include/salome/SALOMEconfig.h include/salome/sstream
60     endif
61 endif
62
63 inc: idl $(include_list)
64
65 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
66         -$(RM) $@
67         $(LN_S) ../../$< $@
68
69 # test if SALOMEconfig.h has changed (contents)
70 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
71         @if ! [ -a $@ ]; then \
72           cp -p $< $@;        \
73         fi;                   \
74         if ! cmp $< $@; then  \
75           cp -p $< $@;        \
76         fi;                   \
77
78 include/salome/config.h: salome_adm/unix/config.h
79         -$(RM) $@
80         $(LN_S) ../../$< $@
81
82 include/salome/sstream: salome_adm/unix/sstream
83         -$(RM) $@
84         $(LN_S) ../../$< $@
85
86 depend: depend_idl
87
88 depend_idl:
89         (cd idl ; $(MAKE) $@) || exit 1
90
91 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
92 #doc:
93 #       (cd doc && $(MAKE) $@) || exit 1
94
95 # Install make_commence make_conclude ... for other modules
96 install-make:
97         ($(INSTALL) -d  $(incmakedir) || exit 1);
98         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
99         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
100
101
102 install-end:
103 # finish libtool install
104 #       @$(LT) --mode=finish $(libdir)
105
106 install-include: $(include_list)
107         $(INSTALL) -d  $(includedir)
108         @for f in X $(include_list); do                         \
109            if test $$f != X; then                               \
110              (cp -p $$f $(includedir) || exit 1);               \
111            fi;                                                  \
112         done
113
114 # install script in $(bindir) :
115 install-appliskel:
116         $(INSTALL) -d  $(bindir)
117         cp -rp $(top_builddir)/bin/salome/appliskel $(bindir)
118
119 install-bin: $(BIN_SCRIPT)
120         $(INSTALL) -d  $(bindir)
121         $(INSTALL_PROGRAM) $^ $(bindir)
122
123 # install Plugin file
124 install-plugin: $(top_builddir)/share/salome/resources/Plugin
125         ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
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 salome_adm/unix/config.h 
138         -$(RM) config.cache config.log config.status 
139
140 @MODULE@
141
142 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
143         cp -f $< $@ ; \
144
145 resources: $(top_builddir)/share/salome/resources/Plugin
146
147 install: install-bin install-appliskel install-include install-make install-plugin install-end