mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
8e11a9b425
Quite a lot of churn on style, but lots of good work refactoring complicated functions and lots more unit-tests. Thanks mostly to rillig at NetBSD Some interesting entries from ChangeLog o .MAKE.{UID,GID} represent uid and gid running make. o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o add more unit tests for META MODE Change-Id: I4d3bcf08b4c864d98b343f602efe5a75dbfa7a94
33 lines
858 B
Makefile
33 lines
858 B
Makefile
# $NetBSD: cmd-errors-jobs.mk,v 1.1 2020/12/27 05:11:40 rillig Exp $
|
|
#
|
|
# Demonstrate how errors in variable expansions affect whether the commands
|
|
# are actually executed in jobs mode.
|
|
|
|
.MAKEFLAGS: -j1
|
|
|
|
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.
|