Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/visu.git] / Makefile.in
1 #  Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 #
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.
8 #
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.
13 #
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
17 #
18 #  See http://www.salome-platform.org/
19 #
20 # -* Makefile *- 
21 #
22 # Author : Patrick GOLDBRONN (CEA)
23 # Date : 28/06/2001
24 # $Header$
25 #
26
27 # source path
28 top_srcdir=@top_srcdir@
29 top_builddir=.
30 srcdir=@srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
32
33
34 @COMMENCE@
35
36 SUBDIRS = idl src doc adm_local
37
38 BIN_SCRIPT= \
39 VERSION
40
41
42 # copy header files in common directory
43 ifeq ($(HAVE_SSTREAM),yes)
44   include_list=include/salome/SALOMEconfig.h
45 else
46   include_list=include/salome/SALOMEconfig.h include/salome/sstream
47 endif
48
49 inc: idl $(include_list)
50
51 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
52         -$(RM) $@
53         $(LN_S) ../../$< $@
54
55 # test if SALOMEconfig.h has changed (contents)
56 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
57         @if ! [ -a $@ ]; then \
58           cp -p -f $< $@;        \
59         fi;                   \
60         if ! cmp $< $@; then  \
61           cp -p -f $< $@;        \
62         fi;                   \
63
64 include/salome/sstream: salome_adm/unix/sstream
65         -$(RM) $@
66         $(LN_S) ../../$< $@
67
68 depend: depend_idl
69
70 depend_idl:
71         (cd idl ; $(MAKE) $@) || exit 1
72
73 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
74 #doc:
75 #       (cd doc && $(MAKE) $@) || exit 1
76
77 install-end:
78 # finish libtool install
79 #       @$(LT) --mode=finish $(libdir)
80
81 install-include: $(include_list)
82         $(INSTALL) -d  $(includedir)
83         @for f in X $(include_list); do                         \
84            if test $$f != X; then                               \
85              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
86            fi;                                                  \
87         done
88
89 # install script in $(bindir) :
90 install-bin: $(BIN_SCRIPT)
91         $(INSTALL) -d  $(bindir)
92         if test $(BIN_SCRIPT)X != X; then                       \
93                 $(INSTALL_PROGRAM) $^ $(bindir);                \
94         fi
95
96 uninstall: uninstall-idl
97
98 uninstall-idl:
99         $(RM) $(idldir)/*.idl
100
101 distclean: distclean-other
102
103 distclean-other:
104         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
105         -$(RM) salome_adm/unix/make_* 
106         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
107         -$(RM) config.cache config.log config.status 
108
109 @MODULE@
110
111 install: install-bin install-include install-end
112