1 # $NetBSD: cond-func-defined.mk,v 1.7 2020/11/15 14:07:53 rillig Exp $
3 # Tests for the defined() function in .if conditions.
6 ${:UA B}= variable name with spaces
12 # Horizontal whitespace (space tab) after the opening parenthesis is ignored.
17 # Horizontal whitespace (space tab) before the closing parenthesis is ignored.
22 # The argument of a function must not directly contain whitespace.
27 # If necessary, the whitespace can be generated by a variable expression.
28 .if !defined(${:UA B})
32 # Parse error: missing closing parenthesis; see ParseFuncArg.
39 # Variables from .for loops are not defined.
40 # See directive-for.mk for more details.
45 . info In .for loops, variable expressions for the loop variables are
46 . info substituted at evaluation time. There is no actual variable
47 . info involved, even if it feels like it.