freebsd-src/unit-tests/opt-debug-x-trace.mk
Simon J. Gerraty cdde9e894d Import bmake-20220204
Features of interest:

Allow setting target local variables (similar to gmake)

In META_MODE .MAKE.META.CMP_FILTER can be used for filtering commands
before comparion.

contrib/bmake/mk/cc-wrap.mk is an example of using these

See ChangeLog for the gory details.
2022-02-05 12:03:50 -08:00

13 lines
360 B
Makefile

# $NetBSD: opt-debug-x-trace.mk,v 1.2 2022/01/23 16:09:38 rillig Exp $
#
# Tests for the -dx command line option, which runs shell commands with
# the -x option, thereby printing the actual commands as they are
# executed.
.MAKEFLAGS: -dx
# expect: + echo 'Counting 1 2 3 4 5 6 7'
# expect: Counting 1 2 3 4 5 6 7
all: .PHONY
@echo 'Counting ${:U:range=7}'