Salome HOME
Fix for problem with table of contents resizing.
[modules/gui.git] / Makefile.in
1 #  Copyright (C) 2005  CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
2 #
3 #  This library is free software; you can redistribute it and/or
4 #  modify it under the terms of the GNU Lesser General Public
5 #  License as published by the Free Software Foundation; either
6 #  version 2.1 of the License.
7 #
8 #  This library is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 #  Lesser General Public License for more details.
12 #
13 #  You should have received a copy of the GNU Lesser General Public
14 #  License along with this library; if not, write to the Free Software
15 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 # -* Makefile *- 
20 #
21 # Author : Patrick GOLDBRONN (CEA)
22 # Date : 28/06/2001
23 # $Header$
24 #
25
26 # source path
27 top_srcdir=@top_srcdir@
28 top_builddir=.
29 srcdir=@srcdir@
30 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
31
32
33 @COMMENCE@
34
35 SUBDIRS = src doc adm_local
36
37 RESOURCES_FILES = \
38 back.xpm \
39 cascade.png \
40 close.png \
41 default.png \
42 dl_delete.png \
43 dl_insert.png \
44 dl_moveup.png \
45 dl_movedown.png \
46 forward.xpm \
47 help.png \
48 home.xpm \
49 new.png \
50 open.png \
51 print.png \
52 reset.png \
53 save.png \
54 select1.png \
55 tile.png \
56 Tools_en.xml \
57 view_back.png \
58 view_bottom.png \
59 view_camera_dump.png \
60 view_fitall.png \
61 view_fitarea.png \
62 view_front.png \
63 view_glpan.png \
64 view_left.png \
65 view_pan.png \
66 view_reset.png \
67 view_right.png \
68 view_rotate.png \
69 view_top.png \
70 view_triedre.png \
71 view_zoom.png \
72 copy.png \
73 paste.png \
74 plot2d_dump.png \
75 plot2d_fitall.png \
76 plot2d_fitarea.png \
77 plot2d_legend.png \
78 plot2d_linear.png \
79 plot2d_linear_y.png \
80 plot2d_lines.png \
81 plot2d_log.png \
82 plot2d_log_y.png \
83 plot2d_pan.png \
84 plot2d_points.png \
85 plot2d_settings.png \
86 plot2d_splines.png \
87 plot2d_zoom.png \
88 uc_add.png \
89 uc_current.png \
90 uc_del.png \
91 uc_new.png \
92 uc_clear.png \
93 channel.cfg \
94
95 BIN_SCRIPT= VERSION \
96 runLightSalome.csh \
97 runLightSalome.sh
98
99 # copy header files in common directory
100 OWN_CONFIG_H=@OWN_CONFIG_H@
101
102 include_list = include/salome/SALOMEconfig.h \
103                include/salome/GUI_version.h
104
105 ifeq ($(OWN_CONFIG_H),yes)
106         include_list += include/salome/config.h
107 endif
108
109 ifneq ($(HAVE_SSTREAM),yes)
110         include_list += include/salome/sstream
111 endif
112
113 inc: idl $(include_list)
114
115 bin: bin/salome/VERSION
116
117 bin/salome/VERSION : bin/VERSION
118         -$(RM) $@
119         $(LN_S) ../../$< $@
120
121 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
122         -$(RM) $@
123         $(LN_S) ../../$< $@
124
125 # test if SALOMEconfig.h has changed (contents)
126 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
127         @if ! [ -a $@ ]; then \
128           cp -p $< $@;        \
129         fi;                   \
130         if ! cmp $< $@; then  \
131           cp -p $< $@;        \
132         fi;                   \
133
134 include/salome/config.h: salome_adm/unix/config.h
135         -$(RM) $@
136         $(LN_S) ../../$< $@
137
138 include/salome/sstream: salome_adm/unix/sstream
139         -$(RM) $@
140         $(LN_S) ../../$< $@
141
142 include/salome/GUI_version.h: GUI_version.h
143         -$(RM) $@
144         $(LN_S) ../../$< $@
145
146 depend:
147 #depend: depend_idl
148 #depend_idl:
149 #       (cd idl ; $(MAKE) $@) || exit 1
150
151 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
152 #doc:
153 #       (cd doc && $(MAKE) $@) || exit 1
154
155 # Install make_commence make_conclude ... for other modules
156 install-make:
157         ($(INSTALL) -d  $(incmakedir) || exit 1);
158         (sed 's/^prefix=/#prefix=/' $(top_builddir)/adm_local/unix/make_commence > $(incmakedir)/make_commence || exit 1);
159
160
161 install-end:
162 # finish libtool install
163 #       @$(LT) --mode=finish $(libdir)
164
165 install-include: $(include_list)
166         $(INSTALL) -d  $(includedir)
167         @for f in X $(include_list); do                         \
168            if test $$f != X; then                               \
169              (cp -p $$f $(includedir) || exit 1);               \
170            fi;                                                  \
171         done
172
173 # install script in $(bindir) :
174 install-bin: $(BIN_SCRIPT)
175         $(INSTALL) -d  $(bindir)
176         $(INSTALL_PROGRAM) $^ $(bindir)
177
178 uninstall:
179 #uninstall: uninstall-idl
180 #uninstall-idl:
181 #       $(RM) $(idldir)/*.idl
182
183 distclean: distclean-other
184
185 distclean-other:
186         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
187         -$(RM) salome_adm/unix/make_* 
188         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h 
189         -$(RM) config.cache config.log config.status 
190
191 @MODULE@
192
193 install: install-bin install-include install-make install-end
194