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