1 # $NetBSD: var-class-local.mk,v 1.4 2020/10/25 09:46:25 rillig Exp $
3 # Tests for target-local variables, such as ${.TARGET} or $@.
7 # Ensure that the name of the variable is exactly the given one.
8 # The variable "@" is an alias for ".TARGET", so the implementation might
9 # canonicalize these aliases at some point, and that might be surprising.
10 # This aliasing happens for single-character variable names like $@ or $<
11 # (see VarFind, CanonicalVarname), but not for braced or parenthesized
12 # expressions like ${@}, ${.TARGET} ${VAR:Mpattern} (see Var_Parse,
17 .if ${.TARGET:L} != ".TARGET"
28 # The ::= modifier overwrites the .TARGET variable in the node
29 # 'all', not in the global scope. This can be seen with the -dv
30 # option, looking for "all:@ = overwritten".
31 : ${.TARGET} ${.TARGET::=overwritten}${.TARGET}