repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git]
/
usr.bin
/
make
/
unit-tests
/
ternary
blob
77f834981c6cea6165acc82f096c1f32117742a3
1
2
all:
3
@for x in "" A= A=42; do ${.MAKE} -f ${MAKEFILE} show $$x; done
4
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}"