]> SALOME platform Git repositories - modules/kernel.git/blob - Makefile.in
Salome HOME
MPV: fix for bug IPAL9312
[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 CatalogRessources.xml \
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 launchConfigureParser.py \
39 salome.launch \
40 envSalome.py \
41 salomeConsole.py \
42 showNS.py
43
44 # copy header files in common directory
45 OWN_CONFIG_H=@OWN_CONFIG_H@
46
47 ifeq ($(OWN_CONFIG_H),yes)
48     ifeq ($(HAVE_SSTREAM),yes)
49         include_list=include/salome/SALOMEconfig.h include/salome/config.h
50     else
51         include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
52     endif
53 else
54     ifeq ($(HAVE_SSTREAM),yes)
55         include_list=include/salome/SALOMEconfig.h
56     else
57         include_list=include/salome/SALOMEconfig.h include/salome/sstream
58     endif
59 endif
60
61 inc: idl $(include_list)
62
63 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
64         -$(RM) $@
65         $(LN_S) ../../$< $@
66
67 # test if SALOMEconfig.h has changed (contents)
68 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
69         @if ! [ -a $@ ]; then \
70           cp -p $< $@;        \
71         fi;                   \
72         if ! cmp $< $@; then  \
73           cp -p $< $@;        \
74         fi;                   \
75
76 include/salome/config.h: salome_adm/unix/config.h
77         -$(RM) $@
78         $(LN_S) ../../$< $@
79
80 include/salome/sstream: salome_adm/unix/sstream
81         -$(RM) $@
82         $(LN_S) ../../$< $@
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 #doc:
91 #       (cd doc && $(MAKE) $@) || exit 1
92
93 # Install make_commence make_conclude ... for other modules
94 install-make:
95         ($(INSTALL) -d  $(incmakedir) || exit 1);
96         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
97         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
98
99
100 install-end:
101 # finish libtool install
102 #       @$(LT) --mode=finish $(libdir)
103
104 install-include: $(include_list)
105         $(INSTALL) -d  $(includedir)
106         @for f in X $(include_list); do                         \
107            if test $$f != X; then                               \
108              (cp -p $$f $(includedir) || exit 1);               \
109            fi;                                                  \
110         done
111
112 # install script in $(bindir) :
113 install-bin: $(BIN_SCRIPT)
114         $(INSTALL) -d  $(bindir)
115         $(INSTALL_PROGRAM) $^ $(bindir)
116
117 # install Plugin file
118 install-plugin: $(top_builddir)/share/salome/resources/Plugin
119         ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
120        
121 uninstall: uninstall-idl
122
123 uninstall-idl:
124         $(RM) $(idldir)/*.idl
125
126 distclean: distclean-other
127
128 distclean-other:
129         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
130         -$(RM) salome_adm/unix/make_* 
131         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h 
132         -$(RM) config.cache config.log config.status 
133
134 @MODULE@
135
136 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
137         cp -f $< $@ ; \
138
139 resources: $(top_builddir)/share/salome/resources/Plugin
140
141 install: install-bin install-include install-make install-plugin install-end
142