Module Name:    src
Committed By:   rillig
Date:           Sat Sep 26 15:41:53 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: dep-double-colon.mk

Log Message:
make(1): add test for '::' dependency operator with .ALLTARGETS


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/dep-double-colon.mk

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/dep-double-colon.mk
diff -u src/usr.bin/make/unit-tests/dep-double-colon.mk:1.3 src/usr.bin/make/unit-tests/dep-double-colon.mk:1.4
--- src/usr.bin/make/unit-tests/dep-double-colon.mk:1.3	Sat Aug 22 12:42:32 2020
+++ src/usr.bin/make/unit-tests/dep-double-colon.mk	Sat Sep 26 15:41:53 2020
@@ -1,4 +1,4 @@
-# $NetBSD: dep-double-colon.mk,v 1.3 2020/08/22 12:42:32 rillig Exp $
+# $NetBSD: dep-double-colon.mk,v 1.4 2020/09/26 15:41:53 rillig Exp $
 #
 # Tests for the :: operator in dependency declarations.
 
@@ -9,3 +9,12 @@ all::
 all::
 	@echo 'command 2a'
 	@echo 'command 2b'
+
+# When there are multiple command groups for a '::' target, each of these
+# groups is added separately to the .ALLTARGETS variable.
+#
+# XXX: What is this good for?
+# XXX: Where does the leading space come from?
+.if ${.ALLTARGETS} != " all all"
+.  error
+.endif

Reply via email to