Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests make(1): add test for touching a .MA...
details: https://anonhg.NetBSD.org/src/rev/6e23a1da88d9
branches: trunk
changeset: 946028:6e23a1da88d9
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Nov 14 14:13:09 2020 +0000
description:
make(1): add test for touching a .MAKE target
diffstat:
usr.bin/make/unit-tests/opt-touch.exp | 1 +
usr.bin/make/unit-tests/opt-touch.mk | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r d32464691075 -r 6e23a1da88d9 usr.bin/make/unit-tests/opt-touch.exp
--- a/usr.bin/make/unit-tests/opt-touch.exp Sat Nov 14 13:59:58 2020 +0000
+++ b/usr.bin/make/unit-tests/opt-touch.exp Sat Nov 14 14:13:09 2020 +0000
@@ -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
diff -r d32464691075 -r 6e23a1da88d9 usr.bin/make/unit-tests/opt-touch.mk
--- a/usr.bin/make/unit-tests/opt-touch.mk Sat Nov 14 13:59:58 2020 +0000
+++ b/usr.bin/make/unit-tests/opt-touch.mk Sat Nov 14 14:13:09 2020 +0000
@@ -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-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; }
Home |
Main Index |
Thread Index |
Old Index