mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 08:12:27 -04:00
Relevant/interesting changes:
o optimize string matching for ':M' and ':N'
o warn about malformed patterns in ':M', ':N' and '.if make(...)'
o allow guards to be targets as well as variables
The guard targets may include variable references like
__${.PARSEDIR:tA}/${.PARSEFILE}__
o optimization for makefiles protected from multiple-inclusion
skip even opening the file after first include.
o var.c: do not allow delete of readOnly variable
o parse.c: .break takes no args
14 lines
498 B
Makefile
14 lines
498 B
Makefile
# $NetBSD: directive-error.mk,v 1.6 2023/06/01 20:56:35 rillig Exp $
|
|
#
|
|
# Tests for the .error directive, which prints an error message and exits
|
|
# immediately, unlike other "fatal" parse errors, which continue to parse
|
|
# until the end of the current top-level makefile.
|
|
#
|
|
# See also:
|
|
# opt-warnings-as-errors.mk
|
|
|
|
# Before parse.c 1.532 from 2021-01-27, the ".error" issued an irrelevant
|
|
# message saying "parsing warnings being treated as errors".
|
|
.MAKEFLAGS: -W
|
|
# expect+1: message
|
|
.error message
|