1 # $NetBSD: dep-wildcards.mk,v 1.4 2023/06/21 12:27:50 rillig Exp $ 2 # 3 # Tests for wildcards such as *.c in dependency declarations. 4 5 all: ${.PARSEDIR}/dep-*.mk 6 # The :T is necessary to run this test from another directory. 7 # The :O is necessary since the result of the dependency resolution 8 # does not order the directory entries itself. 9 @printf '%s\n' ${.ALLSRC:T:O} 10 11 # This is not a wildcard rule as implemented by GNU make, as those rules would 12 # use '%' instead of '*'. Instead, the pattern '*.target' is a file pattern 13 # in the current working directory. As there are no such files, the target 14 # list becomes empty, and the source pattern '*.source' is not even expanded. 15 *.target: *.source 16