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