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