1# $NetBSD: directive-elifdef.mk,v 1.3 2022/01/22 16:23:56 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 versatile '.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