Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[plugins/netgenplugin.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, L3S, LJLL, MENSI
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:@top_srcdir@/resources:./bin:@top_srcdir@/idl
32
33
34 @COMMENCE@
35
36 SUBDIRS = idl src adm_local
37
38 RESOURCES_FILES = \
39     NETGENPlugin.xml \
40     mesh_hypo_netgen.png \
41     mesh_hypo_netgen_2d.png \
42     mesh_algo_netgen_2d3d.png \
43     mesh_algo_netgen_2d.png \
44     mesh_tree_hypo_netgen.png \
45     mesh_tree_hypo_netgen_2d.png \
46     mesh_tree_algo_netgen_2d3d.png \
47     mesh_tree_algo_netgen_2d.png
48
49 BIN_SCRIPT = VERSION
50
51 # copy header files in common directory ------------
52
53 include_list = include/salome/SALOMEconfig.h \
54                include/salome/NETGENPLUGIN_version.h
55
56 ifneq ($(HAVE_SSTREAM),yes)
57         include_list += include/salome/sstream
58 endif
59
60 inc: idl $(include_list)
61
62 bin: bin/salome/VERSION
63
64 bin/salome/VERSION : bin/VERSION
65         -$(RM) $@
66         $(LN_S) ../../$< $@
67
68 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
69         -$(RM) $@
70         $(LN_S) ../../$< $@
71
72 # test if SALOMEconfig.h has changed (contents)
73 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
74         @if ! [ -a $@ ]; then \
75           cp -p -f $< $@;        \
76         fi;                   \
77         if ! cmp $< $@; then  \
78           cp -p -f $< $@;        \
79         fi;                   \
80
81 include/salome/sstream: salome_adm/unix/sstream
82         -$(RM) $@
83         $(LN_S) ../../$< $@
84
85 include/salome/NETGENPLUGIN_version.h: NETGENPLUGIN_version.h
86         -$(RM) $@
87         $(LN_S) ../../$< $@
88
89 install-include: $(include_list)
90         $(INSTALL) -d  $(includedir)
91         @for f in X $(include_list); do                                 \
92            if test $$f != X; then                                       \
93              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
94            fi;                                                          \
95         done
96
97 # install script in $(bindir) :
98 install-bin: $(BIN_SCRIPT)
99         $(INSTALL) -d  $(bindir)
100         if test $(BIN_SCRIPT)X != X; then                       \
101                 $(INSTALL_PROGRAM) $^ $(bindir);                \
102         fi
103
104 # CLEAN --------------------
105
106 distclean: distclean-other
107
108 distclean-other:
109         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
110         -$(RM) salome_adm/unix/make_* 
111         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
112         -$(RM) config.cache config.log config.status 
113
114 @MODULE@
115
116 install: install-bin install-include