diff options
Diffstat (limited to 'unit-tests/vardebug.mk')
-rw-r--r-- | unit-tests/vardebug.mk | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/unit-tests/vardebug.mk b/unit-tests/vardebug.mk index f61df98d50de..51c2f4b0839a 100644 --- a/unit-tests/vardebug.mk +++ b/unit-tests/vardebug.mk @@ -1,8 +1,8 @@ -# $NetBSD: vardebug.mk,v 1.3 2020/08/08 14:28:46 rillig Exp $ +# $NetBSD: vardebug.mk,v 1.6 2020/10/31 13:15:10 rillig Exp $ # # Demonstrates the debugging output for var.c. -RELEVANT= yes +.MAKEFLAGS: -dv FROM_CMDLINE= VAR= added # VarAdd VAR= overwritten # Var_Set @@ -19,12 +19,12 @@ VAR= 1 VAR+= 2 VAR+= 3 -.if ${VAR:M[2]} # VarMatch +.if ${VAR:M[2]} # ModifyWord_Match .endif -.if ${VAR:N[2]} # VarNoMatch (no debug output) +.if ${VAR:N[2]} # ModifyWord_NoMatch (no debug output) .endif -.if ${VAR:S,2,two,} # VarGetPattern +.if ${VAR:S,2,two,} # ParseModifierPart .endif .if ${VAR:Q} # VarQuote @@ -53,7 +53,12 @@ VAR+= 3 .if ${UNDEFINED} .endif -RELEVANT= no +# By default, .SHELL is not defined and thus can be set. As soon as it is +# accessed, it is initialized in the command line context (during VarFind), +# where it is set to read-only. Assigning to it is ignored. +.MAKEFLAGS: .SHELL=overwritten + +.MAKEFLAGS: -d0 all: @: |