Salome HOME
Fix for bug PAL9354 (Can't edit a python line).
[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 back.xpm \
21 cascade.png \
22 CatalogDataType.xml \
23 KERNELCatalog.xml \
24 CatalogResources.xml \
25 CatalogRessources.xml \
26 close.png \
27 config \
28 default.png \
29 dl_delete.png \
30 dl_insert.png \
31 dl_moveup.png \
32 dl_movedown.png \
33 forward.xpm \
34 help.png \
35 home.xpm \
36 new.png \
37 open.png \
38 print.png \
39 redo.png \
40 reset.png \
41 Application-Logo.png \
42 Application-Splash.png \
43 Application-About.png \
44 save.png \
45 select1.png \
46 tile.png \
47 Tools_en.xml \
48 undo.png \
49 view_back.png \
50 view_bottom.png \
51 view_camera_dump.png \
52 view_fitall.png \
53 view_fitarea.png \
54 view_front.png \
55 view_glpan.png \
56 view_left.png \
57 view_pan.png \
58 view_reset.png \
59 view_right.png \
60 view_rotate.png \
61 view_top.png \
62 view_triedre.png \
63 view_zoom.png \
64 copy.png \
65 paste.png \
66 plot2d_dump.png \
67 plot2d_fitall.png \
68 plot2d_fitarea.png \
69 plot2d_legend.png \
70 plot2d_linear.png \
71 plot2d_linear_y.png \
72 plot2d_lines.png \
73 plot2d_log.png \
74 plot2d_log_y.png \
75 plot2d_pan.png \
76 plot2d_points.png \
77 plot2d_settings.png \
78 plot2d_splines.png \
79 plot2d_zoom.png \
80 uc_add.png \
81 uc_current.png \
82 uc_del.png \
83 uc_new.png \
84 uc_clear.png \
85 channel.cfg \
86 SALOMEDS_Resources
87
88 BIN_SCRIPT= \
89 runIDLparser \
90 VERSION \
91 orbmodule.py \
92 runSalome.py \
93 killSalome.py \
94 killSalomeWithPort.py \
95 runSalome \
96 runSalome.csh \
97 runNS.sh \
98 launchConfigureParser.py \
99 salome.launch \
100 envSalome.py \
101 salomeConsole.py \
102 showNS.py
103
104 # copy header files in common directory
105 OWN_CONFIG_H=@OWN_CONFIG_H@
106
107 ifeq ($(OWN_CONFIG_H),yes)
108     ifeq ($(HAVE_SSTREAM),yes)
109         include_list=include/salome/SALOMEconfig.h include/salome/config.h
110     else
111         include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
112     endif
113 else
114     ifeq ($(HAVE_SSTREAM),yes)
115         include_list=include/salome/SALOMEconfig.h
116     else
117         include_list=include/salome/SALOMEconfig.h include/salome/sstream
118     endif
119 endif
120
121 inc: idl $(include_list)
122
123 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
124         -$(RM) $@
125         $(LN_S) ../../$< $@
126
127 # test if SALOMEconfig.h has changed (contents)
128 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
129         @if ! [ -a $@ ]; then \
130           cp -p $< $@;        \
131         fi;                   \
132         if ! cmp $< $@; then  \
133           cp -p $< $@;        \
134         fi;                   \
135
136 include/salome/config.h: salome_adm/unix/config.h
137         -$(RM) $@
138         $(LN_S) ../../$< $@
139
140 include/salome/sstream: salome_adm/unix/sstream
141         -$(RM) $@
142         $(LN_S) ../../$< $@
143
144 depend: depend_idl
145
146 depend_idl:
147         (cd idl ; $(MAKE) $@) || exit 1
148
149 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
150 #doc:
151 #       (cd doc && $(MAKE) $@) || exit 1
152
153 # Install make_commence make_conclude ... for other modules
154 install-make:
155         ($(INSTALL) -d  $(incmakedir) || exit 1);
156         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
157         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
158
159
160 install-end:
161 # finish libtool install
162 #       @$(LT) --mode=finish $(libdir)
163
164 install-include: $(include_list)
165         $(INSTALL) -d  $(includedir)
166         @for f in X $(include_list); do                         \
167            if test $$f != X; then                               \
168              (cp -p $$f $(includedir) || exit 1);               \
169            fi;                                                  \
170         done
171
172 # install script in $(bindir) :
173 install-bin: $(BIN_SCRIPT)
174         $(INSTALL) -d  $(bindir)
175         $(INSTALL_PROGRAM) $^ $(bindir)
176
177 # install Plugin file
178 install-plugin: $(top_builddir)/share/salome/resources/Plugin
179         ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
180
181 uninstall: uninstall-idl
182
183 uninstall-idl:
184         $(RM) $(idldir)/*.idl
185
186 distclean: distclean-other
187
188 distclean-other:
189         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
190         -$(RM) salome_adm/unix/make_* 
191         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h 
192         -$(RM) config.cache config.log config.status 
193
194 @MODULE@
195
196 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
197         cp -f $< $@ ; \
198
199 resources: $(top_builddir)/share/salome/resources/Plugin
200
201 install: install-bin install-include install-make install-plugin install-end