Module Name:    src
Committed By:   sjg
Date:           Sun Oct 18 22:55:52 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: Makefile

Log Message:
In meta mode we do not have to re-run all tests when Makefile is touched


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/usr.bin/make/unit-tests/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/Makefile
diff -u src/usr.bin/make/unit-tests/Makefile:1.167 src/usr.bin/make/unit-tests/Makefile:1.168
--- src/usr.bin/make/unit-tests/Makefile:1.167	Sun Oct 18 16:33:18 2020
+++ src/usr.bin/make/unit-tests/Makefile	Sun Oct 18 22:55:52 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.167 2020/10/18 16:33:18 rillig Exp $
+# $NetBSD: Makefile,v 1.168 2020/10/18 22:55:52 sjg Exp $
 #
 # Unit tests for make(1)
 #
@@ -546,7 +546,12 @@ sync-mi:
 	cvs diff "$$mi" || true
 
 .if exists(${TEST_MAKE})
-${TESTS:=.rawout}: ${TEST_MAKE} ${.PARSEDIR}/Makefile
+${TESTS:=.rawout}: ${TEST_MAKE}
+# in meta mode, we *know* if a target script is impacted
+# by a makefile change.
+.if ${.MAKE.MODE:Unormal:Mmeta} == ""
+${TESTS:=.rawout}: ${.PARSEDIR}/Makefile
+.endif
 .endif
 
 .-include <bsd.obj.mk>

Reply via email to