xref: /freebsd/contrib/bmake/unit-tests/ternary.mk (revision d8a0fe102c0cfdfcd5b818f850eff09d8536c9bc)
1
2all:
3	@for x in "" A= A=42; do ${.MAKE} -f ${MAKEFILE} show $$x; done
4
5show:
6	@echo "The answer is ${A:?known:unknown}"
7	@echo "The answer is ${A:?$A:unknown}"
8	@echo "The answer is ${empty(A):?empty:$A}"
9