Module Name: src Committed By: rillig Date: Wed Jun 21 12:27:50 UTC 2023
Modified Files: src/usr.bin/make/unit-tests: dep-wildcards.mk Log Message: tests/make: document how wildcards behave in a dependency declaration To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/dep-wildcards.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-wildcards.mk diff -u src/usr.bin/make/unit-tests/dep-wildcards.mk:1.3 src/usr.bin/make/unit-tests/dep-wildcards.mk:1.4 --- src/usr.bin/make/unit-tests/dep-wildcards.mk:1.3 Tue Sep 8 05:33:05 2020 +++ src/usr.bin/make/unit-tests/dep-wildcards.mk Wed Jun 21 12:27:50 2023 @@ -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