tests/make: fix documentation in cond-func.mk
This commit is contained in:
parent
fa9a5efd89
commit
596c2276c5
|
@ -2,11 +2,11 @@ make: "cond-func.mk" line 36: Missing closing parenthesis for defined()
|
|||
make: "cond-func.mk" line 51: Missing closing parenthesis for defined()
|
||||
make: "cond-func.mk" line 54: Missing closing parenthesis for defined()
|
||||
make: "cond-func.mk" line 94: The empty variable is never defined.
|
||||
make: "cond-func.mk" line 102: A plain function name is parsed as !empty(...).
|
||||
make: "cond-func.mk" line 109: A plain function name is parsed as !empty(...).
|
||||
make: "cond-func.mk" line 119: Symbols may start with a function name.
|
||||
make: "cond-func.mk" line 124: Symbols may start with a function name.
|
||||
make: "cond-func.mk" line 130: Missing closing parenthesis for defined()
|
||||
make: "cond-func.mk" line 103: A plain function name is parsed as defined(...).
|
||||
make: "cond-func.mk" line 110: A plain function name is parsed as defined(...).
|
||||
make: "cond-func.mk" line 120: Symbols may start with a function name.
|
||||
make: "cond-func.mk" line 125: Symbols may start with a function name.
|
||||
make: "cond-func.mk" line 131: Missing closing parenthesis for defined()
|
||||
make: Fatal errors encountered -- cannot continue
|
||||
make: stopped in unit-tests
|
||||
exit status 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: cond-func.mk,v 1.10 2021/12/28 22:13:56 rillig Exp $
|
||||
# $NetBSD: cond-func.mk,v 1.11 2022/01/07 19:30:17 rillig Exp $
|
||||
#
|
||||
# Tests for those parts of the functions in .if conditions that are common
|
||||
# among several functions.
|
||||
|
@ -94,19 +94,20 @@ ${VARNAME_UNBALANCED_BRACES}= variable name with unbalanced braces
|
|||
. info The empty variable is never defined.
|
||||
.endif
|
||||
|
||||
# The plain word 'defined' is interpreted as '!empty(defined)'.
|
||||
# The plain word 'defined' is interpreted as 'defined(defined)', see
|
||||
# CondParser_ComparisonOrLeaf.
|
||||
# That variable is not defined (yet).
|
||||
.if defined
|
||||
. error
|
||||
.else
|
||||
. info A plain function name is parsed as !empty(...).
|
||||
. info A plain function name is parsed as defined(...).
|
||||
.endif
|
||||
|
||||
# If a variable named 'defined' is actually defined, the bare word 'defined'
|
||||
# is interpreted as 'defined(defined)', and the condition evaluates to true.
|
||||
defined= # defined but empty
|
||||
.if defined
|
||||
. info A plain function name is parsed as !empty(...).
|
||||
. info A plain function name is parsed as defined(...).
|
||||
.else
|
||||
. error
|
||||
.endif
|
||||
|
|
Loading…
Reference in New Issue