Home | History | Annotate | Line # | Download | only in unit-tests
var-scope-local-legacy.mk revision 1.2
      1  1.2  rillig # $NetBSD: var-scope-local-legacy.mk,v 1.2 2022/09/27 19:18:45 rillig Exp $
      2  1.1  rillig #
      3  1.1  rillig # Tests for legacy target-local variables, such as ${<F} or ${@D}.
      4  1.1  rillig 
      5  1.2  rillig all: .PHONY
      6  1.2  rillig 	# Only variables of length 2 can be legacy, this one cannot.
      7  1.2  rillig 	: LEN4=${LEN4:Uundef}_
      8  1.2  rillig 	# The second character of the name must be 'D' or 'F'.
      9  1.2  rillig 	: XY=${XY:Uundef}_
     10  1.2  rillig 	# The first character must name one of the 7 predefined local
     11  1.2  rillig 	# variables, 'A' is not such a character.
     12  1.2  rillig 	: AF=${AF:Uundef}_
     13  1.2  rillig 	# The variable '.MEMBER' is undefined, therefore '%D' and '%F' are
     14  1.2  rillig 	# undefined as well.
     15  1.2  rillig 	: %D=${%D:Uundef}_ %F=${%F:Uundef}_
     16  1.2  rillig 	# The directory name of the target is '.', its basename is 'all'.
     17  1.2  rillig 	: @D=${@D:Uundef}_ @F=${@F:Uundef}_
     18