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): move flags for lint test in...



details:   https://anonhg.NetBSD.org/src/rev/c0b1dba6748a
branches:  trunk
changeset: 944051:c0b1dba6748a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Sep 15 16:22:04 2020 +0000

description:
make(1): move flags for lint test into the test itself

diffstat:

 usr.bin/make/unit-tests/Makefile |  3 +--
 usr.bin/make/unit-tests/lint.mk  |  4 +++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r e35d93fa7e55 -r c0b1dba6748a usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Tue Sep 15 11:19:10 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Tue Sep 15 16:22:04 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.142 2020/09/14 06:44:50 rillig Exp $
+# $NetBSD: Makefile,v 1.143 2020/09/15 16:22:04 rillig Exp $
 #
 # Unit tests for make(1)
 #
@@ -363,7 +363,6 @@
 FLAGS.doterror=                # none
 FLAGS.envfirst=                -e
 FLAGS.export=          # none
-FLAGS.lint=            -dL -k
 FLAGS.opt-ignore=      -i
 FLAGS.opt-keep-going=  -k
 FLAGS.opt-no-action=   -n
diff -r e35d93fa7e55 -r c0b1dba6748a usr.bin/make/unit-tests/lint.mk
--- a/usr.bin/make/unit-tests/lint.mk   Tue Sep 15 11:19:10 2020 +0000
+++ b/usr.bin/make/unit-tests/lint.mk   Tue Sep 15 16:22:04 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: lint.mk,v 1.2 2020/08/08 13:00:07 rillig Exp $
+# $NetBSD: lint.mk,v 1.3 2020/09/15 16:22:04 rillig Exp $
 #
 # Demonstrates stricter checks that are only enabled in the lint mode,
 # using the -dL option.
@@ -10,6 +10,8 @@
 # for a moment, but is continued after the wrongly-guessed end of the
 # variable, which echoes "y@:Q}".
 
+.MAKEFLAGS: -dL
+
 all: mod-loop-varname
 
 mod-loop-varname:



Home | Main Index | Thread Index | Old Index