Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests make(1): add test for '::' dependenc...
details: https://anonhg.NetBSD.org/src/rev/3ce912af345f
branches: trunk
changeset: 955312:3ce912af345f
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Sep 26 15:41:53 2020 +0000
description:
make(1): add test for '::' dependency operator with .ALLTARGETS
diffstat:
usr.bin/make/unit-tests/dep-double-colon.mk | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 5fcbfa33aa3c -r 3ce912af345f usr.bin/make/unit-tests/dep-double-colon.mk
--- a/usr.bin/make/unit-tests/dep-double-colon.mk Sat Sep 26 14:59:21 2020 +0000
+++ b/usr.bin/make/unit-tests/dep-double-colon.mk Sat Sep 26 15:41:53 2020 +0000
@@ -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::
@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
Home |
Main Index |
Thread Index |
Old Index