freebsd-src/unit-tests/directive-ifnmake.mk
Simon J. Gerraty 302da1a3d3 Import bmake-20201101
Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py
2020-11-07 19:39:21 +00:00

23 lines
421 B
Makefile

# $NetBSD: directive-ifnmake.mk,v 1.5 2020/10/05 19:27:48 rillig Exp $
#
# Tests for the .ifnmake directive, which evaluates to true if its argument
# is _not_ listed in the command-line targets to be created.
all:
@:;
.ifnmake(test)
.BEGIN:
@echo "Don't forget to run the tests (1)"
.endif
.MAKEFLAGS: test
.ifnmake(test)
.BEGIN:
@echo "Don't forget to run the tests (2)"
.endif
test:
@echo "Running the tests"