Tcl Source Code

Artifact [b421fec479]
Login

Artifact b421fec479b495dd5a1d31d7ec51e132c9467e58:

Attachment "p" to ticket [575768ffff] added by mdejong 2002-07-17 05:44:15.
2002-07-16  Mo DeJong  <[email protected]>

	* unix/Makefile.in: Use dltest.marker file
	to keep track of when the dltest package
	is up to date. This fixes [Tcl bug 575768]
	since tcltest is no longer linked every time.
	* unix/dltest/Makefile.in: Create ../dltest.marker
	after a successful `make all` run in dltest.

Index: unix/Makefile.in
===================================================================
RCS file: /cvsroot/tcl/tcl/unix/Makefile.in,v
retrieving revision 1.105
diff -u -r1.105 Makefile.in
--- unix/Makefile.in	5 Jul 2002 10:38:43 -0000	1.105
+++ unix/Makefile.in	16 Jul 2002 22:42:59 -0000
@@ -194,7 +194,7 @@
 SHLIB_SUFFIX		= @SHLIB_SUFFIX@
 #SHLIB_SUFFIX		=
 
-DLTEST_TARGETS		= dlpkgs
+DLTEST_TARGETS		= dltest.marker
 
 # The following symbol is defined to "$(DLTEST_TARGETS)" if dynamic
 # loading is available;  this causes everything in the "dltest"
@@ -560,12 +560,13 @@
 	    <y.tab.c >$(GENERIC_DIR)/tclDate.c
 	rm y.tab.c
 
-# The following targets generate the shared libraries in dltest/ that
+# The following target generates the shared libraries in dltest/ that
 # are used for testing;  they are included as part of the "tcltest"
 # target (via the BUILD_DLTEST variable) if dynamic loading is supported
-# on this platform.
+# on this platform. The Makefile in the dltest subdirectory creates
+# the dltest.marker file in this directory after a successful build.
 
-dlpkgs:
+dltest.marker:
 	cd dltest ; $(MAKE)
 
 install: install-binaries install-libraries install-doc
Index: unix/dltest/Makefile.in
===================================================================
RCS file: /cvsroot/tcl/tcl/unix/dltest/Makefile.in,v
retrieving revision 1.10
diff -u -r1.10 Makefile.in
--- unix/dltest/Makefile.in	6 Jun 2002 19:45:47 -0000	1.10
+++ unix/dltest/Makefile.in	16 Jul 2002 22:42:59 -0000
@@ -22,6 +22,7 @@
 	${SHLIB_CFLAGS} -DUSE_TCL_STUBS ${AC_FLAGS}
 
 all: pkga${SHLIB_SUFFIX} pkgb${SHLIB_SUFFIX} pkgc${SHLIB_SUFFIX} pkgd${SHLIB_SUFFIX} pkge${SHLIB_SUFFIX}
+	@touch ../dltest.marker
 
 pkga${SHLIB_SUFFIX}: $(SRC_DIR)/pkga.c
 	$(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkga.c
@@ -44,7 +45,8 @@
 	${SHLIB_LD} -o pkge${SHLIB_SUFFIX} pkge.o ${SHLIB_LD_LIBS}
 
 clean:
-	rm -f *.o *${SHLIB_SUFFIX} config.cache config.log config.status lib.exp
+	rm -f *.o *${SHLIB_SUFFIX} config.cache config.log config.status
+	rm -f lib.exp ../dltest.marker
 
 distclean: clean
 	rm -f Makefile