freebsd-src/unit-tests/opt-raw.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

15 lines
419 B
Makefile

# $NetBSD: opt-raw.mk,v 1.3 2022/01/23 16:09:38 rillig Exp $
#
# Tests for the -r command line option, which skips the system-defined default
# rules from <sys.mk>.
# To provide a clean testing environment without unintended side effects,
# these unit tests run make with the option '-r' by default. This means there
# are no predefined suffixes and no predefined tools.
.if defined(CC)
. error
.endif
all: .PHONY