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 tests/make: document how wildcards b...
details: https://anonhg.NetBSD.org/src/rev/bb41cd240e2b
branches: trunk
changeset: 376505:bb41cd240e2b
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Jun 21 12:27:50 2023 +0000
description:
tests/make: document how wildcards behave in a dependency declaration
diffstat:
usr.bin/make/unit-tests/dep-wildcards.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r ba30720a364d -r bb41cd240e2b usr.bin/make/unit-tests/dep-wildcards.mk
--- a/usr.bin/make/unit-tests/dep-wildcards.mk Wed Jun 21 12:16:31 2023 +0000
+++ b/usr.bin/make/unit-tests/dep-wildcards.mk Wed Jun 21 12:27:50 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dep-wildcards.mk,v 1.3 2020/09/08 05:33:05 rillig Exp $
+# $NetBSD: dep-wildcards.mk,v 1.4 2023/06/21 12:27:50 rillig Exp $
#
# Tests for wildcards such as *.c in dependency declarations.
@@ -7,3 +7,9 @@ all: ${.PARSEDIR}/dep-*.mk
# The :O is necessary since the result of the dependency resolution
# does not order the directory entries itself.
@printf '%s\n' ${.ALLSRC:T:O}
+
+# This is not a wildcard rule as implemented by GNU make, as those rules would
+# use '%' instead of '*'. Instead, the pattern '*.target' is a file pattern
+# in the current working directory. As there are no such files, the target
+# list becomes empty, and the source pattern '*.source' is not even expanded.
+*.target: *.source
Home |
Main Index |
Thread Index |
Old Index