]> SALOME platform Git repositories - modules/visu.git/blob - Makefile.in
Salome HOME
Remove non-implemented methods
[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/ or email : webmaster.salome@opencascade.com
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:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
32
33
34 @COMMENCE@
35
36 SUBDIRS = idl src doc adm_local
37
38 BIN_SCRIPT= \
39 VERSION
40
41 # copy header files in common directory
42
43 include_list = include/salome/SALOMEconfig.h \
44                include/salome/VISU_version.h
45
46 ifneq ($(HAVE_SSTREAM),yes)
47         include_list += include/salome/sstream
48 endif
49
50 inc: idl $(include_list)
51
52 bin: bin/salome/VERSION
53
54 bin/salome/VERSION : bin/VERSION
55         -$(RM) $@
56         $(LN_S) ../../$< $@
57
58 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
59         -$(RM) $@
60         $(LN_S) ../../$< $@
61
62 # test if SALOMEconfig.h has changed (contents)
63 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
64         @if ! [ -a $@ ]; then \
65           cp -p -f $< $@;        \
66         fi;                   \
67         if ! cmp $< $@; then  \
68           cp -p -f $< $@;        \
69         fi;                   \
70
71 include/salome/sstream: salome_adm/unix/sstream
72         -$(RM) $@
73         $(LN_S) ../../$< $@
74
75 include/salome/VISU_version.h: VISU_version.h
76         -$(RM) $@
77         $(LN_S) ../../$< $@
78
79 depend: depend_idl
80
81 depend_idl:
82         (cd idl ; $(MAKE) $@) || exit 1
83
84 resources: share/salome/resources/VISUCatalog.xml
85
86 share/salome/resources/VISUCatalog.xml: VISUCatalog.xml
87         cp $< $@
88
89 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
90 #doc:
91 #       (cd doc && $(MAKE) $@) || exit 1
92
93 install-end:
94 # finish libtool install
95 #       @$(LT) --mode=finish $(libdir)
96
97 install-include: $(include_list)
98         $(INSTALL) -d  $(includedir)
99         @for f in X $(include_list); do                         \
100            if test $$f != X; then                               \
101              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
102            fi;                                                  \
103         done
104
105 # install script in $(bindir) :
106 install-bin: $(BIN_SCRIPT)
107         $(INSTALL) -d  $(bindir)
108         if test $(BIN_SCRIPT)X != X; then                       \
109                 $(INSTALL_PROGRAM) $^ $(bindir);                \
110         fi
111
112 uninstall: uninstall-idl
113
114 uninstall-idl:
115         $(RM) $(idldir)/*.idl
116
117 distclean: distclean-other
118
119 distclean-other:
120         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
121         -$(RM) salome_adm/unix/make_* 
122         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
123         -$(RM) config.cache config.log config.status 
124
125 @MODULE@
126
127 install: install-bin install-include install-end
128
129 install-resources: install-catalog
130
131 install-catalog: share/salome/resources/VISUCatalog.xml
132         $(INSTALL) -d $(datadir)/resources
133         $(INSTALL_DATA) $< $(datadir)/resources/.