summaryrefslogtreecommitdiffstats
path: root/contrib/bmake/unit-tests/ternary
blob: 77f834981c6cea6165acc82f096c1f32117742a3 (plain)
1
2
3
4
5
6
7
8

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}"
OpenPOWER on IntegriCloud