Salome HOME
Rollback previous integration
[modules/kernel.git] / bin / 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 # -* Makefile *- 
23 # Author : Guillaume Boulant (CSSI)
24 # Module : KERNEL
25 # $Header$
26 #
27 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
28
29 #
30 # ===============================================================
31 # Files to be installed
32 # ===============================================================
33 #
34
35 # These files are data, module or lib files
36 dist_salomescript_DATA =        \
37         config_appli.xml        \
38         salome.launch
39
40 nodist_salomescript_DATA =      \
41         VERSION
42
43 # These files are executable scripts
44 dist_salomescript_SCRIPTS =             \
45         appli_clean.sh                  \
46         appli_install.sh                \
47         createAppli.sh                  \
48         runIDLparser                    \
49         runNS.sh                        \
50         runSalome                       \
51         runSalome.csh                   \
52         runSalome.ksh                   \
53         waitNS.sh
54
55 # These files are python files
56 dist_salomescript_PYTHON =              \
57         addToKillList.py                \
58         appli_gen.py                    \
59         envSalome.py                    \
60         killSalome.py                   \
61         killSalomeWithPort.py           \
62         launchConfigureParser.py        \
63         launchSalome.py                 \
64         nameserver.py                   \
65         NSparam.py                      \
66         orbmodule.py                    \
67         runNS.py                        \
68         runSalome.py                    \
69         salomeConsole.py                \
70         salome_session.py               \
71         salome_utils.py                 \
72         server.py                       \
73         setenv.py                       \
74         showNS.py                       \
75         shutdownSalome.py               \
76         virtual_salome.py               \
77         waitContainers.py               \
78         waitNS.py
79
80 EXTRA_DIST = appliskel
81
82 dist-hook:
83         rm -rf `find $(distdir)/appliskel -name CVS`
84
85 DISTCLEANFILES = $(top_builddir)/bin/salome/Makefile.am
86
87 # This is an ugly target to avoid exploring the appliskel subdirectory.
88 install-exec-local:
89         $(INSTALL) -d $(DESTDIR)$(salomescriptdir)
90         $(RM) -rf $(DESTDIR)$(salomescriptdir)/appliskel 1> /dev/null 2>&1
91         cp -r $(srcdir)/appliskel $(DESTDIR)$(salomescriptdir)
92         chmod a+x -R $(DESTDIR)$(salomescriptdir)/appliskel
93         find $(DESTDIR)$(salomescriptdir) -name CVS -prune -exec rm -rf {} \;
94
95 uninstall-local:
96         if test -d $(DESTDIR)$(salomescriptdir)/appliskel; then \
97           find $(DESTDIR)$(salomescriptdir)/appliskel -exec chmod +w {} ';' ; \
98           rm -rf $(DESTDIR)$(salomescriptdir)/appliskel; \
99         fi;
100
101 install-data-hook:
102         @for f in $(dist_salomescript_PYTHON) ; do \
103           chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \
104         done