mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o Fix building and unit-tests on non-BSD. o More code cleanup and refactoring. o More unit tests
31 lines
823 B
Makefile
31 lines
823 B
Makefile
# $NetBSD: cmd-errors.mk,v 1.3 2020/11/09 23:36:34 rillig Exp $
|
|
#
|
|
# Demonstrate how errors in variable expansions affect whether the commands
|
|
# are actually executed.
|
|
|
|
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.
|