#
include $(top_srcdir)/salome_adm/unix/make_common_starter.am
+SUBDIRS = appliskel
+
#
# ===============================================================
# Files to be installed
waitContainers.py \
waitNS.py
-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;
-
install-data-hook:
@for f in $(dist_salomescript_PYTHON) ; do \
chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \
--- /dev/null
+# Copyright (C) 2007-2011 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 : Renaud Barate (EDF R&D)
+# Module : KERNEL
+# $Header$
+
+include $(top_srcdir)/salome_adm/unix/make_common_starter.am
+appliskeldir = $(salomescriptdir)/appliskel
+
+#
+# ===============================================================
+# Files to be installed
+# ===============================================================
+#
+
+# These files are executable scripts
+dist_appliskel_SCRIPTS = \
+ envd \
+ searchFreePort.sh \
+ runRemote.sh \
+ runAppli \
+ runConsole \
+ runSession \
+ runSalomeScript \
+ runTests \
+ .bashrc
+
+# These files are python files
+dist_appliskel_PYTHON = \
+ getAppliPath.py \
+ update_catalogs.py \
+ kill_remote_containers.py
+
+install-data-hook:
+ @for f in $(dist_appliskel_PYTHON) ; do \
+ chmod -f a+x $(DESTDIR)$(appliskeldir)/$$f ; \
+ done
salome_adm/unix/config_files/Makefile \
Makefile \
bin/Makefile \
+ bin/appliskel/Makefile \
bin/VERSION \
doc/Makefile \
doc/docutils/conf.py \
''')
pass
+ # --
+ # --
+ key = "PYUIC_FILES"
+ if self.__thedict__.has_key(key):
+ newlines.append('''
+ FOREACH(output ${PYUIC_FILES})
+ STRING(REPLACE ".py" ".ui" input ${output})
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${output})
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${output}
+ COMMAND ${PYUIC_EXECUTABLE} -o ${output} ${input}
+ MAIN_DEPENDENCY ${input}
+ )
+ ENDFOREACH(output ${PYUIC_FILES})
+ ADD_CUSTOM_TARGET(BUILD_PY_UI_FILES ALL DEPENDS ${PYUIC_FILES})
+ ''')
+ pass
+
# --
# --
key = "QRC_FILES"
"dist_salomescript_SCRIPTS" : "bin/salome",
"dist_salomescript_DATA" : "bin/salome",
"dist_salomescript_PYTHON" : "bin/salome",
+ "dist_appliskel_SCRIPTS" : "bin/salome/appliskel",
+ "dist_appliskel_PYTHON" : "bin/salome/appliskel",
"nodist_salomescript_DATA" : "bin/salome",
"salomepython_PYTHON" : "${salomepythondir}",
"nodist_salomepython_PYTHON" : "${salomepythondir}",
"sharedpkgpython_PYTHON" : "${salomepythondir}/shared_modules",
"salomepypkg_PYTHON" : "${salomepypkgdir}",
"mypkgpython_PYTHON" : "${mypkgpythondir}",
+ "nodist_mypkgpython_PYTHON" : "${mypkgpythondir}",
}
if self.module == "jobmanager":
d["bin_SCRIPTS"] = "bin"
FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
IF(dummy)
''')
- if key in ['dist_salomescript_SCRIPTS']:
+ if key in ['dist_salomescript_SCRIPTS',
+ 'dist_appliskel_SCRIPTS',
+ 'dist_appliskel_PYTHON']:
newlines.append(r'''
SET(PERMS)
SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)