diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2020-11-07 21:46:27 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2020-11-07 21:46:27 +0000 |
commit | 956e45f6fb3e18b8e89b1341708db60c30bb9f27 (patch) | |
tree | b73e225c44ed4cf063ba39f347d06efaeccb3149 /contrib/bmake/unit-tests/vardebug.mk | |
parent | f908d8247ef4d535007f608593a29d62b5df3873 (diff) | |
parent | 302da1a3d35c15cb29d76e0a939f8bcb13f7ad80 (diff) | |
download | src-956e45f6fb3e18b8e89b1341708db60c30bb9f27.tar.gz src-956e45f6fb3e18b8e89b1341708db60c30bb9f27.zip |
Update to bmake-20201101
Lots of new unit-tests increase code coverage.
Lots of refactoring, cleanup and simlpification to reduce
code size.
Fixes for Bug 223564 and 245807
Updates to dirdeps.mk and meta2deps.py
Notes
Notes:
svn path=/head/; revision=367465
Diffstat (limited to 'contrib/bmake/unit-tests/vardebug.mk')
-rw-r--r-- | contrib/bmake/unit-tests/vardebug.mk | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/contrib/bmake/unit-tests/vardebug.mk b/contrib/bmake/unit-tests/vardebug.mk index f61df98d50de..51c2f4b0839a 100644 --- a/contrib/bmake/unit-tests/vardebug.mk +++ b/contrib/bmake/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: @: |