Salome HOME
PR: bug 10994 correction proposal
[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 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 NSparam.py
46
47 # copy header files in common directory
48 OWN_CONFIG_H=@OWN_CONFIG_H@
49
50 ifeq ($(OWN_CONFIG_H),yes)
51     ifeq ($(HAVE_SSTREAM),yes)
52         include_list=include/salome/SALOMEconfig.h include/salome/config.h
53     else
54         include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
55     endif
56 else
57     ifeq ($(HAVE_SSTREAM),yes)
58         include_list=include/salome/SALOMEconfig.h
59     else
60         include_list=include/salome/SALOMEconfig.h include/salome/sstream
61     endif
62 endif
63
64 inc: idl $(include_list)
65
66 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
67         -$(RM) $@
68         $(LN_S) ../../$< $@
69
70 # test if SALOMEconfig.h has changed (contents)
71 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
72         @if ! [ -a $@ ]; then \
73           cp -p $< $@;        \
74         fi;                   \
75         if ! cmp $< $@; then  \
76           cp -p $< $@;        \
77         fi;                   \
78
79 include/salome/config.h: salome_adm/unix/config.h
80         -$(RM) $@
81         $(LN_S) ../../$< $@
82
83 include/salome/sstream: salome_adm/unix/sstream
84         -$(RM) $@
85         $(LN_S) ../../$< $@
86
87 depend: depend_idl
88
89 depend_idl:
90         (cd idl ; $(MAKE) $@) || exit 1
91
92 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
93 #doc:
94 #       (cd doc && $(MAKE) $@) || exit 1
95
96 # Install make_commence make_conclude ... for other modules
97 install-make:
98         ($(INSTALL) -d  $(incmakedir) || exit 1);
99         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
100         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
101
102
103 install-end:
104 # finish libtool install
105 #       @$(LT) --mode=finish $(libdir)
106
107 install-include: $(include_list)
108         $(INSTALL) -d  $(includedir)
109         @for f in X $(include_list); do                         \
110            if test $$f != X; then                               \
111              (cp -p $$f $(includedir) || exit 1);               \
112            fi;                                                  \
113         done
114
115 # install script in $(bindir) :
116 install-appliskel:
117         $(INSTALL) -d  $(bindir)
118         if test -d $(top_builddir)/bin/salome/appliskel; then           \
119             cp -rp $(top_builddir)/bin/salome/appliskel $(bindir);      \
120         fi;
121
122 install-bin: $(BIN_SCRIPT)
123         $(INSTALL) -d  $(bindir)
124         $(INSTALL_PROGRAM) $^ $(bindir)
125
126 # install Plugin file
127 install-plugin: $(top_builddir)/share/salome/resources/Plugin
128         ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
129
130 uninstall: uninstall-idl
131
132 uninstall-idl:
133         $(RM) $(idldir)/*.idl
134
135 distclean: distclean-other
136
137 distclean-other:
138         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
139         -$(RM) salome_adm/unix/make_* 
140         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h 
141         -$(RM) config.cache config.log config.status 
142
143 @MODULE@
144
145 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
146         cp -f $< $@ ; \
147
148 resources: $(top_builddir)/share/salome/resources/Plugin
149
150 install: install-bin install-appliskel install-include install-make install-plugin install-end