Salome HOME
41e9d3c718392117cd930e9a93ef1de6cc35b19b
[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
80 # copy header files in common directory
81 OWN_CONFIG_H=@OWN_CONFIG_H@
82
83 ifeq ($(OWN_CONFIG_H),yes)
84     ifeq ($(HAVE_SSTREAM),yes)
85         include_list=include/salome/SALOMEconfig.h include/salome/config.h
86     else
87         include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
88     endif
89 else
90     ifeq ($(HAVE_SSTREAM),yes)
91         include_list=include/salome/SALOMEconfig.h
92     else
93         include_list=include/salome/SALOMEconfig.h include/salome/sstream
94     endif
95 endif
96
97 inc: idl $(include_list)
98
99 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
100         -$(RM) $@
101         $(LN_S) ../../$< $@
102
103 # test if SALOMEconfig.h has changed (contents)
104 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
105         @if ! [ -a $@ ]; then \
106           cp -p $< $@;        \
107         fi;                   \
108         if ! cmp $< $@; then  \
109           cp -p $< $@;        \
110         fi;                   \
111
112 include/salome/config.h: salome_adm/unix/config.h
113         -$(RM) $@
114         $(LN_S) ../../$< $@
115
116 include/salome/sstream: salome_adm/unix/sstream
117         -$(RM) $@
118         $(LN_S) ../../$< $@
119
120 depend: depend_idl
121
122 depend_idl:
123         (cd idl ; $(MAKE) $@) || exit 1
124
125 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
126 #doc:
127 #       (cd doc && $(MAKE) $@) || exit 1
128
129 # Install make_commence make_conclude ... for other modules
130 install-make:
131         ($(INSTALL) -d  $(incmakedir) || exit 1);
132         (sed 's/^prefix=/#prefix=/' $(top_builddir)/adm_local/unix/make_commence > $(incmakedir)/make_commence || exit 1);
133
134
135 install-end:
136 # finish libtool install
137 #       @$(LT) --mode=finish $(libdir)
138
139 install-include: $(include_list)
140         $(INSTALL) -d  $(includedir)
141         @for f in X $(include_list); do                         \
142            if test $$f != X; then                               \
143              (cp -p $$f $(includedir) || exit 1);               \
144            fi;                                                  \
145         done
146
147 # install script in $(bindir) :
148 install-bin: $(BIN_SCRIPT)
149         $(INSTALL) -d  $(bindir)
150         $(INSTALL_PROGRAM) $^ $(bindir)
151
152 uninstall: uninstall-idl
153
154 uninstall-idl:
155         $(RM) $(idldir)/*.idl
156
157 distclean: distclean-other
158
159 distclean-other:
160         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
161         -$(RM) salome_adm/unix/make_* 
162         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h 
163         -$(RM) config.cache config.log config.status 
164
165 @MODULE@
166
167 install: install-bin install-include install-make install-end
168