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): document the type of the .D...



details:   https://anonhg.NetBSD.org/src/rev/7efc6aa25486
branches:  trunk
changeset: 1016510:7efc6aa25486
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 22 11:05:49 2020 +0000

description:
make(1): document the type of the .DEFAULT node

It is marked intentionally as a transformation node, even though this
seems counterintuitive at first.

diffstat:

 usr.bin/make/unit-tests/suff-incomplete.mk |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r b79f393274b1 -r 7efc6aa25486 usr.bin/make/unit-tests/suff-incomplete.mk
--- a/usr.bin/make/unit-tests/suff-incomplete.mk        Sun Nov 22 10:48:11 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-incomplete.mk        Sun Nov 22 11:05:49 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: suff-incomplete.mk,v 1.1 2020/11/21 10:32:42 rillig Exp $
+# $NetBSD: suff-incomplete.mk,v 1.2 2020/11/22 11:05:49 rillig Exp $
 #
 # Tests incomplete transformation rules, which are ignored.
 
@@ -23,8 +23,9 @@
 .DEFAULT:
        : Making ${.TARGET} from ${.IMPSRC} all ${.ALLSRC} by default.
 
-# XXX: The debug log says "transformation .DEFAULT complete", which is wrong.
-# .DEFAULT is not a transformation.
+# The debug log says "transformation .DEFAULT complete", which seems wrong
+# on the first sight.  It is intentionally done though, in the call to
+# GNode_New(".DEFAULT").
 
 # XXX: The output of this test says "Making suff-incomplete.c from
 # suff-incomplete.c".  It doesn't make sense to make something out of itself.



Home | Main Index | Thread Index | Old Index