aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/dep-wildcards.mk
blob: b3e2f14a07c3c20325eaaaa90c867727be17a926 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $NetBSD: dep-wildcards.mk,v 1.4 2023/06/21 12:27:50 rillig Exp $
#
# Tests for wildcards such as *.c in dependency declarations.

all: ${.PARSEDIR}/dep-*.mk
	# The :T is necessary to run this test from another directory.
	# 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