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