freebsd-src/unit-tests/dep-op-missing.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

14 lines
554 B
Makefile

# $NetBSD: dep-op-missing.mk,v 1.1 2021/12/14 00:02:57 rillig Exp $
#
# Test for a missing dependency operator, in a line with trailing whitespace.
# Before parse.c 1.578 from 2021-12-14, there was some unreachable error
# handling code in ParseDependencyOp. This test tried to reach it and failed.
# To reach that point, there would have to be trailing whitespace in the line,
# but that is removed in an early stage of parsing.
all: .PHONY
@printf 'target ' > dep-op-missing.tmp
@${MAKE} -r -f dep-op-missing.tmp || exit 0
@rm dep-op-missing.tmp