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