freebsd-src/unit-tests/directive-warning.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

19 lines
600 B
Makefile

# $NetBSD: directive-warning.mk,v 1.7 2022/01/23 16:09:38 rillig Exp $
#
# Tests for the .warning directive.
#
# Until parse.c 1.502 from 2020-12-19, a missing argument to the directive
# produced the wrong error message "Unknown directive". Since parse.c 1.503
# from 2020-12-19, the correct "Missing argument" is produced.
.warn # misspelled
.warn message # misspelled
.warnin # misspelled
.warnin message # misspelled
.warning # "Missing argument"
.warning message # expect+0: message
.warnings # misspelled
.warnings messages # Accepted before 2020-12-13 01:07:54.
all: .PHONY