summaryrefslogtreecommitdiff
path: root/unit-tests/directive-ifnmake.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/directive-ifnmake.mk')
-rw-r--r--unit-tests/directive-ifnmake.mk22
1 files changed, 18 insertions, 4 deletions
diff --git a/unit-tests/directive-ifnmake.mk b/unit-tests/directive-ifnmake.mk
index 2a20249f6c76..4bdb12a46aa1 100644
--- a/unit-tests/directive-ifnmake.mk
+++ b/unit-tests/directive-ifnmake.mk
@@ -1,8 +1,22 @@
-# $NetBSD: directive-ifnmake.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: directive-ifnmake.mk,v 1.5 2020/10/05 19:27:48 rillig Exp $
#
-# Tests for the .ifnmake directive.
-
-# TODO: Implementation
+# 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"