minix/usr.bin/make/unit-tests/ternary
2012-06-18 10:54:48 +00:00

8 lines
206 B
Text

all:
@for x in "" A= A=42; do ${.MAKE} -f ${MAKEFILE} show $$x; done
show:
@echo "The answer is ${A:?known:unknown}"
@echo "The answer is ${A:?$A:unknown}"
@echo "The answer is ${empty(A):?empty:$A}"