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