xref: /freebsd/contrib/bmake/unit-tests/ternary.mk (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1# $NetBSD: ternary.mk,v 1.2 2020/10/24 08:34:59 rillig Exp $
2
3all:
4	@for x in "" A= A=42; do ${.MAKE} -f ${MAKEFILE} show $$x; done
5
6show:
7	@echo "The answer is ${A:?known:unknown}"
8	@echo "The answer is ${A:?$A:unknown}"
9	@echo "The answer is ${empty(A):?empty:$A}"
10