xref: /freebsd/contrib/bmake/unit-tests/directive-ifnmake.mk (revision 95eb4b873b6a8b527c5bd78d7191975dfca38998)
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
6all:
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
21test:
22	@echo "Running the tests"
23