make(1): add test for the undocumented .NULL special dependency target
This commit is contained in:
parent
f0fdf22f6f
commit
21328ac495
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: Makefile,v 1.122 2020/08/28 03:51:06 rillig Exp $
|
# $NetBSD: Makefile,v 1.123 2020/08/28 04:05:35 rillig Exp $
|
||||||
#
|
#
|
||||||
# Unit tests for make(1)
|
# Unit tests for make(1)
|
||||||
#
|
#
|
||||||
@ -322,6 +322,8 @@ ENV.varmisc+= FROM_ENV_BEFORE=env
|
|||||||
ENV.varmisc+= FROM_ENV_AFTER=env
|
ENV.varmisc+= FROM_ENV_AFTER=env
|
||||||
|
|
||||||
# Override make flags for some of the tests; default is -k.
|
# Override make flags for some of the tests; default is -k.
|
||||||
|
# If possible, write ".MAKEFLAGS: -dv" in the test .mk file instead of
|
||||||
|
# settings FLAGS.test=-dv here, since that is closer to the test code.
|
||||||
FLAGS.archive= -dA
|
FLAGS.archive= -dA
|
||||||
FLAGS.counter= -dv
|
FLAGS.counter= -dv
|
||||||
FLAGS.doterror= # none
|
FLAGS.doterror= # none
|
||||||
@ -360,6 +362,8 @@ SED_CMDS.varname-dot-shell+= -e 's,\[/[^]]*\],[(details omitted)],'
|
|||||||
|
|
||||||
# Some tests need an additional round of postprocessing.
|
# Some tests need an additional round of postprocessing.
|
||||||
POSTPROC.counter= ${TOOL_SED} -n -e '/:RELEVANT = yes/,/:RELEVANT = no/p'
|
POSTPROC.counter= ${TOOL_SED} -n -e '/:RELEVANT = yes/,/:RELEVANT = no/p'
|
||||||
|
POSTPROC.deptgt-suffixes= \
|
||||||
|
${TOOL_SED} -n -e '/^\#\*\*\* Suffixes/,/^\#\*/p'
|
||||||
POSTPROC.vardebug= ${TOOL_SED} -n -e '/:RELEVANT = yes/,/:RELEVANT = no/p'
|
POSTPROC.vardebug= ${TOOL_SED} -n -e '/:RELEVANT = yes/,/:RELEVANT = no/p'
|
||||||
POSTPROC.varmod-match-escape= ${TOOL_SED} -n -e '/^Pattern/p'
|
POSTPROC.varmod-match-escape= ${TOOL_SED} -n -e '/^Pattern/p'
|
||||||
POSTPROC.varname-dot-shell= \
|
POSTPROC.varname-dot-shell= \
|
||||||
|
@ -1 +1,7 @@
|
|||||||
|
#*** Suffixes:
|
||||||
|
# `.custom-null' [1] (SUFF_NULL)
|
||||||
|
# To:
|
||||||
|
# From:
|
||||||
|
# Search Path: . ..
|
||||||
|
#*** Transformations:
|
||||||
exit status 0
|
exit status 0
|
||||||
|
@ -1,8 +1,18 @@
|
|||||||
# $NetBSD: deptgt-suffixes.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
|
# $NetBSD: deptgt-suffixes.mk,v 1.3 2020/08/28 04:05:35 rillig Exp $
|
||||||
#
|
#
|
||||||
# Tests for the special target .SUFFIXES in dependency declarations.
|
# Tests for the special target .SUFFIXES in dependency declarations.
|
||||||
|
#
|
||||||
|
# See also:
|
||||||
|
# varname-dot-includes.mk
|
||||||
|
# varname-dot-libs.mk
|
||||||
|
|
||||||
# TODO: Implementation
|
.MAKEFLAGS: -dg1
|
||||||
|
|
||||||
|
.SUFFIXES: .custom-null
|
||||||
|
|
||||||
|
# TODO: What is the effect of this? How is it useful?
|
||||||
|
.NULL: .custom-null
|
||||||
|
.PATH.custom-null: . ..
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@:;
|
@:;
|
||||||
|
Loading…
Reference in New Issue
Block a user