xref: /freebsd/contrib/bmake/unit-tests/directive-ifnmake.mk (revision 956e45f6fb3e18b8e89b1341708db60c30bb9f27)
1*956e45f6SSimon J. Gerraty# $NetBSD: directive-ifnmake.mk,v 1.5 2020/10/05 19:27:48 rillig Exp $
22c3632d1SSimon J. Gerraty#
3*956e45f6SSimon J. Gerraty# Tests for the .ifnmake directive, which evaluates to true if its argument
4*956e45f6SSimon J. Gerraty# is _not_ listed in the command-line targets to be created.
52c3632d1SSimon J. Gerraty
62c3632d1SSimon J. Gerratyall:
72c3632d1SSimon J. Gerraty	@:;
8*956e45f6SSimon J. Gerraty
9*956e45f6SSimon J. Gerraty.ifnmake(test)
10*956e45f6SSimon J. Gerraty.BEGIN:
11*956e45f6SSimon J. Gerraty	@echo "Don't forget to run the tests (1)"
12*956e45f6SSimon J. Gerraty.endif
13*956e45f6SSimon J. Gerraty
14*956e45f6SSimon J. Gerraty.MAKEFLAGS: test
15*956e45f6SSimon J. Gerraty
16*956e45f6SSimon J. Gerraty.ifnmake(test)
17*956e45f6SSimon J. Gerraty.BEGIN:
18*956e45f6SSimon J. Gerraty	@echo "Don't forget to run the tests (2)"
19*956e45f6SSimon J. Gerraty.endif
20*956e45f6SSimon J. Gerraty
21*956e45f6SSimon J. Gerratytest:
22*956e45f6SSimon J. Gerraty	@echo "Running the tests"
23