1 # $NetBSD: depsrc.mk,v 1.4 2020/12/22 19:38:44 rillig Exp $
3 # Tests for special sources (those starting with a dot, followed by
4 # uppercase letters) in dependency declarations, such as .PHONY.
8 # TODO: Test 'target: ${:U.SILENT}'
10 # Demonstrate when exactly undefined variables are expanded in a dependency
12 target: .PHONY source-${DEFINED_LATER}
17 : 'Undefined variables are expanded directly in the dependency'
18 : 'declaration. They are not preserved and maybe expanded later.'
19 : 'This is in contrast to local variables such as $${.TARGET}.'
21 : 'Undefined variables are tried to be expanded in a dependency'
22 : 'declaration. If that fails because the variable is undefined,'
23 : 'the expression is preserved and tried to be expanded later.'