Lines Matching full:variable
3 # Tests for the ?= variable assignment operator, which only assigns
4 # if the variable is still undefined.
6 # The variable VAR is not defined yet. Therefore it gets the default value
7 # from the variable assignment.
13 # At this point, the variable 'VAR' is already defined. The '?=' therefore
14 # ignores the new variable value, preserving the previous "default value".
20 # The '?=' operator only checks whether the variable is defined or not.
21 # An empty variable is defined, therefore the '?=' operator does nothing.
32 # there is never an actual variable named 'i' involved.
34 # Because there is not really a variable named 'i', the '?=' operator
35 # performs the variable assignment, resulting in $i == "default".
43 # At the point where the '?=' operator checks whether the variable exists,
44 # it expands the variable name exactly once. Therefore both 'VAR.param'
49 # expressions in variable names, which made make much more versatile.
51 # fixed. Before, the '?=' operator had not expanded the variable name
52 # 'VAR.${:Uparam}' to see whether the variable already existed. Since that
53 # variable didn't exist (and variables with '$' in their name are particularly
54 # fragile), the variable assignment with "not used" was performed, and only
55 # during that, the variable name was expanded.
62 # Now demonstrate that the variable name is indeed expanded exactly once.
68 EXPAND_NAME= EXPAND.$$$$ # The full variable name is EXPAND.$$