13e39ce56SSimon J. Gerraty# $NetBSD: directive-error.mk,v 1.6 2023/06/01 20:56:35 rillig Exp $ 26bbc783fSSimon J. Gerraty# 38e11a9b4SSimon J. Gerraty# Tests for the .error directive, which prints an error message and exits 48e11a9b4SSimon J. Gerraty# immediately, unlike other "fatal" parse errors, which continue to parse 58e11a9b4SSimon J. Gerraty# until the end of the current top-level makefile. 68b6f73e3SSimon J. Gerraty# 78b6f73e3SSimon J. Gerraty# See also: 88b6f73e3SSimon J. Gerraty# opt-warnings-as-errors.mk 96bbc783fSSimon J. Gerraty 108b6f73e3SSimon J. Gerraty# Before parse.c 1.532 from 2021-01-27, the ".error" issued an irrelevant 118b6f73e3SSimon J. Gerraty# message saying "parsing warnings being treated as errors". 128b6f73e3SSimon J. Gerraty.MAKEFLAGS: -W 133e39ce56SSimon J. Gerraty# expect+1: message 148b6f73e3SSimon J. Gerraty.error message 15