Salome HOME
Merge from V6_main (04/10/2012)
[modules/med.git] / src / MEDOP / exe / appligen / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # author: Guillaume Boulant (EDF/R&D, 2012)
21
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 appligenbindir = $(bindir)/@MODULE_NAME@/appligen
25
26 appligenbin_DATA= \
27         envappli.sh \
28         config_appli.xml       \
29         appli-splashscreen.jpg \
30         SalomeApp.xml
31
32 appligenbin_SCRIPTS=\
33         appligen.sh
34
35 EXTRA_DIST += $(appligenbin_DATA) $(appligenbin_SCRIPTS)
36
37 config_appli.xml: config_appli_model.xml
38         cat $< | sed \
39         -e s~__GEOM_ROOT_DIR__~$(GEOM_ROOT_DIR)~g \
40         -e s~__SMESH_ROOT_DIR__~$(SMESH_ROOT_DIR)~g \
41         -e s~__BLSURFPLUGIN_ROOT_DIR__~$(BLSURFPLUGIN_ROOT_DIR)~g \
42         -e s~__GHS3DPLUGIN_ROOT_DIR__~$(GHS3DPLUGIN_ROOT_DIR)~g \
43         -e s~__NETGENPLUGIN_ROOT_DIR__~$(NETGENPLUGIN_ROOT_DIR)~g \
44         -e s~__VISU_ROOT_DIR__~$(VISU_ROOT_DIR)~g \
45         -e s~__YACS_ROOT_DIR__~$(YACS_ROOT_DIR)~g \
46         -e s~__PARAVIS_ROOT_DIR__~$(PARAVIS_ROOT_DIR)~g \
47         > tmp; mv tmp $@
48
49 envappli.sh:
50         $(srcdir)/genenv.sh envappli.sh
51
52
53 mostlyclean-local:
54         rm -f @builddir@/config_appli.xml @builddir@/envappli.sh