X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2FMakefile.am;h=5ad8d82e4a5df4a271e43a80225cc0552cf6274b;hb=2cb5ecb3b8e2a43f35a5fafc0176d326e1f039bd;hp=eecb208a3fc6e1149441e635716e6b8780225057;hpb=836c34a4e2dd99f1f302a2c3ae93a51cd182368f;p=modules%2Fkernel.git diff --git a/bin/Makefile.am b/bin/Makefile.am index eecb208a3..5ad8d82e4 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -1,11 +1,29 @@ -# -* Makefile *- +# Copyright (C) 2007-2008 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 +# +# 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. # +# 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 +# +# -* Makefile *- # Author : Guillaume Boulant (CSSI) # Module : KERNEL # $Header$ # - - include $(top_srcdir)/salome_adm/unix/make_common_starter.am # @@ -15,46 +33,73 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am # # These files are data, module or lib files -dist_salomescript_DATA= \ - VERSION \ - orbmodule.py \ - salome.launch \ - salomeConsole.py +dist_salomescript_DATA = \ + config_appli.xml \ + salome.launch + +nodist_salomescript_DATA = \ + VERSION # These files are executable scripts -dist_salomescript_SCRIPTS=\ - envSalome.py \ - runIDLparser \ - runSalome.py \ - killSalome.py \ - killSalomeWithPort.py \ - runSalome \ - runSalome.csh \ - runNS.sh \ - createAppli.sh \ - launchConfigureParser.py \ - showNS.py \ - addToKillList.py \ - NSparam.py +dist_salomescript_SCRIPTS = \ + appli_clean.sh \ + appli_install.sh \ + createAppli.sh \ + runIDLparser \ + runNS.sh \ + runSalome \ + runSalome.csh \ + runSalome.ksh \ + runSalome.bat \ + waitNS.sh + +# These files are python files +dist_salomescript_PYTHON = \ + addToKillList.py \ + appli_gen.py \ + envSalome.py \ + killSalome.py \ + killSalomeWithPort.py \ + launchConfigureParser.py \ + launchSalome.py \ + nameserver.py \ + NSparam.py \ + orbmodule.py \ + runNS.py \ + runSalome.py \ + salomeConsole.py \ + salome_session.py \ + salome_utils.py \ + server.py \ + setenv.py \ + showNS.py \ + shutdownSalome.py \ + virtual_salome.py \ + waitContainers.py \ + waitNS.py EXTRA_DIST = appliskel dist-hook: rm -rf `find $(distdir)/appliskel -name CVS` -DISTCLEANFILES = $(top_builddir)/bin/@PACKAGE@/Makefile.am - -clean-local: - rm -rf $(top_builddir)/bin/@PACKAGE@/appliskel - cd $(top_builddir)/bin/@PACKAGE@; \ - rm -f $(dist_salomescript_DATA) $(dist_salomescript_SCRIPTS) +DISTCLEANFILES = $(top_builddir)/bin/salome/Makefile.am # This is an ugly target to avoid exploring the appliskel subdirectory. install-exec-local: - $(INSTALL) -d $(salomescriptdir) - cp -r $(srcdir)/appliskel $(salomescriptdir) - find $(salomescriptdir) -name CVS | xargs rm -rf + $(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: - find $(salomescriptdir)/appliskel -exec chmod +w {} \; - rm -rf $(salomescriptdir)/appliskel + if test -d $(DESTDIR)$(salomescriptdir)/appliskel; then \ + find $(DESTDIR)$(salomescriptdir)/appliskel -exec chmod +w {} ';' ; \ + rm -rf $(DESTDIR)$(salomescriptdir)/appliskel; \ + fi; + +install-data-hook: + @for f in $(dist_salomescript_PYTHON) ; do \ + chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \ + done