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): fix tests for .INCLUDES and...
details: https://anonhg.NetBSD.org/src/rev/c11a2c44bc02
branches: trunk
changeset: 938709:c11a2c44bc02
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 13 16:53:19 2020 +0000
description:
make(1): fix tests for .INCLUDES and .LIBS
Found by an early draft of a refactoring of Var_Parse to properly report
errors.
diffstat:
usr.bin/make/unit-tests/varname-dot-includes.mk | 6 +++---
usr.bin/make/unit-tests/varname-dot-libs.mk | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 939a4d0e18b9 -r c11a2c44bc02 usr.bin/make/unit-tests/varname-dot-includes.mk
--- a/usr.bin/make/unit-tests/varname-dot-includes.mk Sun Sep 13 16:47:24 2020 +0000
+++ b/usr.bin/make/unit-tests/varname-dot-includes.mk Sun Sep 13 16:53:19 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: varname-dot-includes.mk,v 1.1 2020/08/28 03:51:06 rillig Exp $
+# $NetBSD: varname-dot-includes.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
#
# Tests for the special .INCLUDES variable, which is not documented in the
# manual page.
@@ -12,8 +12,8 @@
.INCLUDES: .h
# The .INCLUDES variable is not yet available.
-.if defined(${.INCLUDES:Q})
-.error
+.if defined(.INCLUDES)
+. error
.endif
all:
diff -r 939a4d0e18b9 -r c11a2c44bc02 usr.bin/make/unit-tests/varname-dot-libs.mk
--- a/usr.bin/make/unit-tests/varname-dot-libs.mk Sun Sep 13 16:47:24 2020 +0000
+++ b/usr.bin/make/unit-tests/varname-dot-libs.mk Sun Sep 13 16:53:19 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: varname-dot-libs.mk,v 1.1 2020/08/28 03:51:06 rillig Exp $
+# $NetBSD: varname-dot-libs.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
#
# Tests for the special .LIBS variable, which is not documented in the
# manual page.
@@ -12,8 +12,8 @@
.LIBS: .a
# The .LIBS variable is not yet available.
-.if defined(${.LIBS:Q})
-.error
+.if defined(.LIBS)
+. error
.endif
all:
Home |
Main Index |
Thread Index |
Old Index