]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/directive-ifdef.mk
Merge bmake-20201117
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / directive-ifdef.mk
1 # $NetBSD: directive-ifdef.mk,v 1.3 2020/11/08 22:38:28 rillig Exp $
2 #
3 # Tests for the .ifdef directive.
4
5 # TODO: Implementation
6
7 DEFINED=        defined
8
9 # It looks redundant to have a call to defined() in an .ifdef, but it's
10 # possible.  The .ifdef only affects plain symbols, not function calls.
11 .ifdef defined(DEFINED)
12 .  info Function calls in .ifdef are possible.
13 .else
14 .  error
15 .endif
16
17 all:
18         @:;