1 # Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # Author : Patrick GOLDBRONN (CEA)
28 top_srcdir=@top_srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
36 SUBDIRS = idl src doc adm_local
66 change_orientation.png \
69 circlepointvector.png \
78 cylinderpointvector.png \
102 multirotationdouble.png \
103 multirotationsimple.png \
104 multitranslation.png \
105 multitranslationdouble.png \
106 multitranslationsimple.png \
118 planepointvector.png \
119 planeworkingface.png \
120 planeworkingvector.png \
121 planeworkingorigin.png \
140 supressHolesOnFaceShell.png \
146 toruspointvector.png \
147 translationDxyz.png \
148 translationPoints.png \
149 translationVector.png \
159 tree_group_vertex.png \
160 tree_group_edge.png \
161 tree_group_face.png \
162 tree_group_solid.png \
169 ellipsepointvector.png \
174 suppressintwires.png \
189 block_multitrsf_double.png \
190 block_multitrsf_simple.png \
196 check_blocks_compound.png \
206 # copy header files in common directory
208 include_list = include/salome/SALOMEconfig.h \
209 include/salome/GEOM_version.h
211 ifneq ($(HAVE_SSTREAM),yes)
212 include_list += include/salome/sstream
215 inc: idl $(include_list)
217 bin: bin/salome/VERSION
219 bin/salome/VERSION : bin/VERSION
223 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
227 # test if SALOMEconfig.h has changed (contents)
228 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
229 @if ! [ -a $@ ]; then \
232 if ! cmp $< $@; then \
236 include/salome/sstream: salome_adm/unix/sstream
240 include/salome/GEOM_version.h: GEOM_version.h
247 (cd idl ; $(MAKE) $@) || exit 1
249 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
251 # (cd doc && $(MAKE) $@) || exit 1
254 # finish libtool install
255 # @$(LT) --mode=finish $(libdir)
257 install-include: $(include_list)
258 $(INSTALL) -d $(includedir)
259 @for f in X $(include_list); do \
260 if test $$f != X; then \
261 ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \
265 # install script in $(bindir) :
266 install-bin: $(BIN_SCRIPT)
267 $(INSTALL) -d $(bindir)
268 if test $(BIN_SCRIPT)X != X; then \
269 $(INSTALL_PROGRAM) $^ $(bindir); \
272 uninstall: uninstall-idl
275 $(RM) $(idldir)/*.idl
277 distclean: distclean-other
280 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
281 -$(RM) salome_adm/unix/make_*
282 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
283 -$(RM) config.cache config.log config.status
287 install: install-bin install-include install-end