mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 15:52:40 -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
19 lines
249 B
Makefile
19 lines
249 B
Makefile
# $NetBSD: doterror.mk,v 1.3 2023/06/01 20:56:35 rillig Exp $
|
|
|
|
|
|
.BEGIN:
|
|
@echo At first, I am
|
|
|
|
.END:
|
|
@echo not reached
|
|
|
|
.ERROR:
|
|
@echo "$@: Looks like '${.ERROR_TARGET}' is upset."
|
|
|
|
all: happy sad
|
|
|
|
happy:
|
|
@echo $@
|
|
|
|
sad:
|
|
@echo and now: $@; exit 1
|