mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 02:06:37 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
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
22 lines
506 B
Makefile
22 lines
506 B
Makefile
# $NetBSD: varmod-to-one-word.mk,v 1.3 2020/12/20 23:29:50 rillig Exp $
|
|
#
|
|
# Tests for the :tW variable modifier, which treats the variable value
|
|
# as a single word, for all following modifiers.
|
|
|
|
SENTENCE= The quick brown fox jumps over the lazy brown dog.
|
|
|
|
.if ${SENTENCE:tW:[#]} != 1
|
|
. error
|
|
.endif
|
|
.if ${SENTENCE:tw:[#]} != 10
|
|
. error
|
|
.endif
|
|
|
|
# Protect against accidental freeing of the variable value.
|
|
.if ${SENTENCE} != "The quick brown fox jumps over the lazy brown dog."
|
|
. error
|
|
.endif
|
|
|
|
all:
|
|
@:;
|