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