2021-02-11 01:51:11 +00:00
|
|
|
# $NetBSD: directive-error.mk,v 1.5 2021/01/27 00:02:38 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
2021-01-14 01:24:34 +00:00
|
|
|
# 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.
|
2021-02-11 01:51:11 +00:00
|
|
|
#
|
|
|
|
# See also:
|
|
|
|
# opt-warnings-as-errors.mk
|
2020-09-05 16:11:04 +00:00
|
|
|
|
2021-02-11 01:51:11 +00:00
|
|
|
# Before parse.c 1.532 from 2021-01-27, the ".error" issued an irrelevant
|
|
|
|
# message saying "parsing warnings being treated as errors".
|
|
|
|
.MAKEFLAGS: -W
|
|
|
|
.error message
|