]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/directive-ifnmake.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / directive-ifnmake.mk
1 # $NetBSD: directive-ifnmake.mk,v 1.5 2020/10/05 19:27:48 rillig Exp $
2 #
3 # Tests for the .ifnmake directive, which evaluates to true if its argument
4 # is _not_ listed in the command-line targets to be created.
5
6 all:
7         @:;
8
9 .ifnmake(test)
10 .BEGIN:
11         @echo "Don't forget to run the tests (1)"
12 .endif
13
14 .MAKEFLAGS: test
15
16 .ifnmake(test)
17 .BEGIN:
18         @echo "Don't forget to run the tests (2)"
19 .endif
20
21 test:
22         @echo "Running the tests"