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