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): enable suffix log for test ...



details:   https://anonhg.NetBSD.org/src/rev/466041d3d472
branches:  trunk
changeset: 941447:466041d3d472
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Oct 21 08:18:24 2020 +0000

description:
make(1): enable suffix log for test suff-add-later.mk

The log shows that only some of the transformations are actually
defined.

diffstat:

 usr.bin/make/unit-tests/suff-add-later.exp |  6 ++++++
 usr.bin/make/unit-tests/suff-add-later.mk  |  5 ++++-
 2 files changed, 10 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 1e3bb5387014 -r 466041d3d472 usr.bin/make/unit-tests/suff-add-later.exp
--- a/usr.bin/make/unit-tests/suff-add-later.exp        Wed Oct 21 08:00:06 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-add-later.exp        Wed Oct 21 08:18:24 2020 +0000
@@ -1,3 +1,9 @@
+defining transformation from `.c' to `.d'
+inserting ".c" (1) at end of list
+inserting ".d" (2) at end of list
+defining transformation from `.d' to `.e'
+inserting ".d" (2) at end of list
+inserting ".e" (3) at end of list
 : 'Making issue5a.c out of nothing.'
 make: don't know how to make issue5a.d (continuing)
 make: don't know how to make issue5b.c (continuing)
diff -r 1e3bb5387014 -r 466041d3d472 usr.bin/make/unit-tests/suff-add-later.mk
--- a/usr.bin/make/unit-tests/suff-add-later.mk Wed Oct 21 08:00:06 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-add-later.mk Wed Oct 21 08:18:24 2020 +0000
@@ -1,8 +1,10 @@
-# $NetBSD: suff-add-later.mk,v 1.1 2020/10/20 20:36:53 rillig Exp $
+# $NetBSD: suff-add-later.mk,v 1.2 2020/10/21 08:18:24 rillig Exp $
 #
 # https://gnats.netbsd.org/49086, issue 5:
 # Adding more suffixes does not turn existing rules into suffix rules.
 
+.MAKEFLAGS: -ds
+
 all: issue5a.d issue5b.c issue5c issue5d.e issue5e.d
 
 .SUFFIXES: .c
@@ -29,3 +31,4 @@
 # XXX: don't know how to make issue5a.d (even though .c.d is a transformation
 # rule and issue5a.c can be readily made)
 #.MAKEFLAGS: -dg1
+.MAKEFLAGS: -d0



Home | Main Index | Thread Index | Old Index