Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.bin / make / unit-tests / ternary
blob77f834981c6cea6165acc82f096c1f32117742a3
2 all:
3         @for x in "" A= A=42; do ${.MAKE} -f ${MAKEFILE} show $$x; done
5 show:
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}"