blob: 4bdb12a46aa126973bb022c155e1ccf7adb62954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# $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"
|