depsrc.mk revision 1.4
11.4Srillig# $NetBSD: depsrc.mk,v 1.4 2020/12/22 19:38:44 rillig Exp $ 21.1Srillig# 31.2Srillig# Tests for special sources (those starting with a dot, followed by 41.2Srillig# uppercase letters) in dependency declarations, such as .PHONY. 51.1Srillig 61.1Srillig# TODO: Implementation 71.1Srillig 81.3Srillig# TODO: Test 'target: ${:U.SILENT}' 91.3Srillig 101.4Srillig# Demonstrate when exactly undefined variables are expanded in a dependency 111.4Srillig# declaration. 121.4Srilligtarget: .PHONY source-${DEFINED_LATER} 131.4Srillig# 141.4SrilligDEFINED_LATER= later 151.4Srillig# 161.4Srilligsource-: .PHONY 171.4Srillig : 'Undefined variables are expanded directly in the dependency' 181.4Srillig : 'declaration. They are not preserved and maybe expanded later.' 191.4Srillig : 'This is in contrast to local variables such as $${.TARGET}.' 201.4Srilligsource-later: .PHONY 211.4Srillig : 'Undefined variables are tried to be expanded in a dependency' 221.4Srillig : 'declaration. If that fails because the variable is undefined,' 231.4Srillig : 'the expression is preserved and tried to be expanded later.' 241.4Srillig 251.1Srilligall: 261.1Srillig @:; 27