1# $NetBSD: directive-elifdef.mk,v 1.4 2022/02/09 21:09:24 rillig Exp $ 2# 3# Tests for the .elifdef directive, which is seldom used. Instead of writing 4# '.elifdef VAR', the usual form is the more general '.elif defined(VAR)'. 5 6# At this point, VAR is not defined, so the condition evaluates to false. 7.if 0 8.elifdef VAR 9. error 10.endif 11 12VAR= # defined 13 14# At this point, VAR is defined, so the condition evaluates to true. 15.if 0 16.elifdef VAR 17.else 18. error 19.endif 20 21all: 22