1 # $Id: cond2.mk,v 1.1 2015/05/05 21:51:09 sjg Exp $
6 X
:= ${${TEST_UNAME_S} == "NetBSD":?Ok
:fail
}
10 # expect: Bad conditional expression ` == "empty"' in == "empty"?oops:ok
11 X
:= ${${TEST_NOT_SET} == "empty":?oops
:ok
}
12 # expect: Malformed conditional ({TEST_TYPO} == "Ok")
13 .if
{TEST_TYPO
} == "Ok"
16 .if empty
(TEST_NOT_SET
)
17 Y
!= echo TEST_NOT_SET is empty or not defined
>&2; echo
19 # expect: Malformed conditional (${TEST_NOT_SET} == "empty")
20 .if
${TEST_NOT_SET} == "empty"