1 # $NetBSD: directive-elifndef.mk,v 1.3 2022/01/22 21:50:41 rillig Exp $
3 # Tests for the .elifndef directive, which is an obscure form of writing the
4 # more usual '.elif !defined(VAR)'.
6 # At this point, VAR is not yet defined, and due to the 'n' in 'elifndef' the
7 # condition evaluates to true.
9 .elifndef VAR && VAR || VAR
16 # At this point, VAR is defined, and due to the 'n' in 'elifndef' the
17 # condition evaluates to false.
19 .elifndef VAR && VAR || VAR