tests/make: add cross references to command line tests

This commit is contained in:
rillig 2023-04-07 05:54:16 +00:00
parent 81544015b5
commit ae7d3ae167
3 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
make: "var-scope-cmdline.mk" line 67: global
make: "var-scope-cmdline.mk" line 76: makeflags
make: "var-scope-cmdline.mk" line 71: global
make: "var-scope-cmdline.mk" line 80: makeflags
makeflags
exit status 0

View File

@ -1,4 +1,4 @@
# $NetBSD: var-scope-cmdline.mk,v 1.1 2022/01/23 16:25:54 rillig Exp $
# $NetBSD: var-scope-cmdline.mk,v 1.2 2023/04/07 05:54:16 rillig Exp $
#
# Tests for variables specified on the command line.
#
@ -61,6 +61,10 @@
# Most cmdline variables are set at the very beginning, when parsing the
# command line arguments. Using the special target '.MAKEFLAGS', it is
# possible to set cmdline variables at any later time.
#
# See also:
# varcmd.mk
# varname-makeflags.mk
# A normal global variable, without any cmdline variable nearby.
VAR= global

View File

@ -1,4 +1,4 @@
# $NetBSD: varcmd.mk,v 1.6 2021/02/16 19:43:09 rillig Exp $
# $NetBSD: varcmd.mk,v 1.7 2023/04/07 05:54:16 rillig Exp $
#
# Test behaviour of recursive make and vars set on command line.
#
@ -12,6 +12,10 @@
# be rewritten to make it clear why there is a difference and why this is
# actually intended. Removing that large block of code makes only this test
# and vardebug.mk fail, which is not enough.
#
# See also:
# var-scope-cmdline.mk
# varname-makeflags.mk
FU= fu
FOO?= foo