mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 08:12:27 -04:00
Relevant/interesting changes (see ChangeLog for more):
o variables like .newline and .MAKE.{GID,PID,PPID,UID}
should be read-only.
o .[NO]READONLY: for control of read-only variables
o .SYSPATH: for controlling the path searched for makefiles
o allow for white-space between command specifiers @+-
o add more details to warning 'Extra targets ignored'
o make.1: sync list of built-in variables with reality
sort list of built-in variables
o cond.c: add more details to error message for numeric comparison
o job.c: fix handling of null bytes in output
o Allow .break to terminate a .for loop early
o var.c: fix out-of-bounds errors when parsing
o fix exit status for '-q' (since 1994)
30 lines
838 B
Makefile
30 lines
838 B
Makefile
# $NetBSD: cmd-errors.mk,v 1.5 2022/09/25 12:51:37 rillig Exp $
|
|
#
|
|
# Demonstrate how errors in variable expansions affect whether the commands
|
|
# are actually executed in compat mode.
|
|
|
|
all: undefined unclosed-variable unclosed-modifier unknown-modifier end
|
|
|
|
# Undefined variables are not an error. They expand to empty strings.
|
|
undefined:
|
|
: $@-${UNDEFINED}-eol
|
|
|
|
# XXX: As of 2020-11-01, this command is executed even though it contains
|
|
# parse errors.
|
|
unclosed-variable:
|
|
: $@-${UNCLOSED
|
|
|
|
# XXX: As of 2020-11-01, this command is executed even though it contains
|
|
# parse errors.
|
|
unclosed-modifier:
|
|
: $@-${UNCLOSED:
|
|
|
|
# XXX: As of 2020-11-01, this command is executed even though it contains
|
|
# parse errors.
|
|
unknown-modifier:
|
|
: $@-${UNKNOWN:Z}-eol
|
|
|
|
end:
|
|
: $@-eol
|
|
|
|
# XXX: As of 2020-11-02, despite the parse errors, the exit status is 0.
|