make: Flavor Function
1
1 8.11 The 'flavor' Function
1 ==========================
1
1 The 'flavor' function, like the 'origin' function, does not operate on
1 the values of variables but rather it tells you something _about_ a
11 variable. Specifically, it tells you the flavor of a variable (⇒
The Two Flavors of Variables Flavors.).
1
1 The syntax of the 'flavor' function is:
1
1 $(flavor VARIABLE)
1
1 Note that VARIABLE is the _name_ of a variable to inquire about, not
1 a _reference_ to that variable. Therefore you would not normally use a
1 '$' or parentheses when writing it. (You can, however, use a variable
1 reference in the name if you want the name not to be a constant.)
1
1 The result of this function is a string that identifies the flavor of
1 the variable VARIABLE:
1
1 'undefined'
1
1 if VARIABLE was never defined.
1
1 'recursive'
1
1 if VARIABLE is a recursively expanded variable.
1
1 'simple'
1
1 if VARIABLE is a simply expanded variable.
1