Salome HOME
Merge from BR_KERNEL_REFACTORING
[modules/kernel.git] / bin / Makefile.am
index a62a38534e961474c521903137cecd93fc26d36e..6b155242d27c2a671366d7178d9942cc397db193 100644 (file)
@@ -1,31 +1,34 @@
-#  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
 #
-#  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 #
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
 #
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
 #
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-# -* Makefile *- 
+
+# -* Makefile *-
 # Author : Guillaume Boulant (CSSI)
 # Module : KERNEL
 # $Header$
 #
 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
 
+SUBDIRS = appliskel
+
 #
 # ===============================================================
 # Files to be installed
@@ -33,65 +36,46 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am
 #
 
 # These files are data, module or lib files
-dist_salomescript_DATA =       \
-       config_appli.xml        \
-       salome.launch
+dist_salomescript_DATA =
 
 nodist_salomescript_DATA =     \
        VERSION
 
 # These files are executable scripts
 dist_salomescript_SCRIPTS =            \
-       addToKillList.py                \
        appli_clean.sh                  \
+       runIDLparser
+
+# These files are python files
+dist_salomescript_PYTHON =             \
+       addToKillList.py                \
        appli_gen.py                    \
-       appli_install.sh                \
-       createAppli.sh                  \
        envSalome.py                    \
        killSalome.py                   \
        killSalomeWithPort.py           \
        launchConfigureParser.py        \
-       launchSalome.py                 \
        nameserver.py                   \
        NSparam.py                      \
        orbmodule.py                    \
-       runIDLparser                    \
-       runNS.py                        \
-       runNS.sh                        \
-       runSalome                       \
-       runSalome.csh                   \
-       runSalome.ksh                   \
+       ORBConfigFile.py                \
+       parseConfigFile.py              \
        runSalome.py                    \
+       runSession.py                   \
+       runConsole.py                   \
        salomeConsole.py                \
+       salomeRunner.py                 \
        salome_session.py               \
-       salome_utils.py                 \
+       salome_utils.py                 \
+       searchFreePort.py               \
        server.py                       \
        setenv.py                       \
        showNS.py                       \
        shutdownSalome.py               \
        virtual_salome.py               \
        waitContainers.py               \
-       waitNS.py                       \
-       waitNS.sh
-
-EXTRA_DIST = appliskel
-
-dist-hook:
-       rm -rf `find $(distdir)/appliskel -name CVS`
-
-DISTCLEANFILES = $(top_builddir)/bin/salome/Makefile.am
-
-# This is an ugly target to avoid exploring the appliskel subdirectory.
-install-exec-local:
-       $(INSTALL) -d $(DESTDIR)$(salomescriptdir)
-       $(RM) -rf $(DESTDIR)$(salomescriptdir)/appliskel 1> /dev/null 2>&1
-       cp -r $(srcdir)/appliskel $(DESTDIR)$(salomescriptdir)
-       chmod a+x -R $(DESTDIR)$(salomescriptdir)/appliskel
-       find $(DESTDIR)$(salomescriptdir) -name CVS -prune -exec rm -rf {} \;
-
-uninstall-local:
-       if test -d $(DESTDIR)$(salomescriptdir)/appliskel; then \
-         find $(DESTDIR)$(salomescriptdir)/appliskel -exec chmod +w {} ';' ; \
-         rm -rf $(DESTDIR)$(salomescriptdir)/appliskel; \
-       fi;
+       waitNS.py
 
+install-data-hook:
+       @for f in $(dist_salomescript_PYTHON) ; do \
+               chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \
+       done