Module Name:    src
Committed By:   rillig
Date:           Sat Nov 14 14:13:09 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: opt-touch.exp opt-touch.mk

Log Message:
make(1): add test for touching a .MAKE target


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt-touch.exp
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/opt-touch.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/opt-touch.exp
diff -u src/usr.bin/make/unit-tests/opt-touch.exp:1.2 src/usr.bin/make/unit-tests/opt-touch.exp:1.3
--- src/usr.bin/make/unit-tests/opt-touch.exp:1.2	Sat Nov 14 13:59:58 2020
+++ src/usr.bin/make/unit-tests/opt-touch.exp	Sat Nov 14 14:13:09 2020
@@ -1,3 +1,4 @@
 `opt-touch-join' is up to date.
 `opt-touch-use' is up to date.
+: Making opt-touch-make.
 exit status 0

Index: src/usr.bin/make/unit-tests/opt-touch.mk
diff -u src/usr.bin/make/unit-tests/opt-touch.mk:1.3 src/usr.bin/make/unit-tests/opt-touch.mk:1.4
--- src/usr.bin/make/unit-tests/opt-touch.mk:1.3	Sat Nov 14 13:59:58 2020
+++ src/usr.bin/make/unit-tests/opt-touch.mk	Sat Nov 14 14:13:09 2020
@@ -1,8 +1,8 @@
-# $NetBSD: opt-touch.mk,v 1.3 2020/11/14 13:59:58 rillig Exp $
+# $NetBSD: opt-touch.mk,v 1.4 2020/11/14 14:13:09 rillig Exp $
 #
 # Tests for the -t command line option.
 
-.MAKEFLAGS: -t opt-touch-phony opt-touch-join opt-touch-use
+.MAKEFLAGS: -t opt-touch-phony opt-touch-join opt-touch-use opt-touch-make
 
 opt-touch-phony: .PHONY
 	: Making $@.
@@ -13,6 +13,9 @@ opt-touch-join: .JOIN
 opt-touch-use: .USE
 	: Making use of $@.
 
+opt-touch-make: .MAKE
+	: Making $@.
+
 .END:
 	@files=$$(ls opt-touch-* 2>/dev/null | grep -v -e '\.' -e '\*'); \
 	[ -z "$$files" ] || { echo "created files: $$files" 1>&2; exit 1; }

Reply via email to