Salome HOME
c339c22f04eeca55d35bb26f3792fa7e874c203a
[modules/kernel.git] / salome_adm / unix / Makefile.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
23
24 SUBDIRS = config_files
25
26 DEPRECATED_FILES=\
27         DEPRECATED/F77config.h.in \
28         DEPRECATED/sstream.in \
29         DEPRECATED/envScript.in \
30         DEPRECATED/depend.in \
31         DEPRECATED/make_commence.in \
32         DEPRECATED/make_conclude.in \
33         DEPRECATED/make_module.in \
34         DEPRECATED/make_omniorb.in
35
36 # rules for install and build (see make_common_starter.am)
37 salomeadmux_DATA = SALOMEconfig.h.in
38 salomeinclude_DATA = SALOMEconfig.h
39 BUILT_SOURCES=SALOMEconfig.ref SALOMEconfig.h SALOMEconfig.h.in
40
41 mostlyclean-local:
42         -rm -rf SALOMEconfig.h SALOMEconfig.h.in
43
44 SALOMEconfig.h.in : SALOMEconfig.ref.in
45         cp -pf $< $@;
46
47 # test if SALOMEconfig.ref has changed (contents), at build time
48 SALOMEconfig.h: $(top_builddir)/salome_adm/unix/SALOMEconfig.ref
49         @if ! [ -a $@ ]; then    \
50           echo cp -pf $< $@;     \
51           cp -pf $< $@;          \
52         fi;                      \
53         if ! cmp -s $< $@; then  \
54           echo cp -pf $< $@;     \
55           cp -pf $< $@;          \
56         fi;
57
58 # The deprecated files are deprecated for the KERNEL but not for the
59 # related modules (GUI, MED, ...), for now. Some files have to be installed.
60 dist_salomeadmux_DATA=\
61         $(DEPRECATED_FILES)