[Swift-commit] cog r3828

swift at ci.uchicago.edu swift at ci.uchicago.edu
Wed Oct 30 09:55:03 CDT 2013


------------------------------------------------------------------------
r3828 | jmwozniak | 2013-10-30 09:50:26 -0500 (Wed, 30 Oct 2013) | 2 lines

Automatically make Tcl package if using SWIG

------------------------------------------------------------------------
Index: modules/provider-coaster-c-client/tcl/Makefile.am
===================================================================
--- modules/provider-coaster-c-client/tcl/Makefile.am	(revision 3827)
+++ modules/provider-coaster-c-client/tcl/Makefile.am	(working copy)
@@ -1,3 +1,17 @@
 
-tcl-package: 
-	echo HI
+if SWIG
+
+tcldir = $(PWD)
+
+tcl_DATA = pkgIndex.tcl
+
+# This dependency points to the existence of a soft link
+pkgIndex.tcl: libcoasterclient.so
+	@echo Making Tcl package...
+	tclsh ./make-package.tcl > pkgIndex.tcl
+
+# This is a soft link
+libcoasterclient.so: 
+	ln -s ../src/.libs/libcoasterclient.so
+
+endif
Index: modules/provider-coaster-c-client/Makefile.am
===================================================================
--- modules/provider-coaster-c-client/Makefile.am	(revision 3827)
+++ modules/provider-coaster-c-client/Makefile.am	(working copy)
@@ -1,5 +1,5 @@
 ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src
+SUBDIRS = src 
 EXTRA_DIST = autogen.sh
 LIBS = -pthread $LIBS
 AM_CXXFLAGS = -pthread
@@ -11,3 +11,9 @@
 	cp -d src/.libs/libcoasterclient.so* dist/lib
 	cp src/.libs/coaster-client-test dist/bin
 	cp src/.libs/run-coaster-job dist/bin
+
+if SWIG
+
+SUBDIRS += tcl
+
+endif



More information about the Swift-commit mailing list