mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00:00
2935fe8237
Relevant changes see ChangeLog for details: Add support for ${.SUFFIXES} as read-only variable. Fix memory leak in cond.c Punt on write errors - ENOSPC etc. Lots of code refactoring, rework to reduce memory allocations. More unit-tests.
39 lines
512 B
Makefile
39 lines
512 B
Makefile
# $NetBSD: varmod-root.mk,v 1.5 2021/12/05 22:31:58 rillig Exp $
|
|
#
|
|
# Tests for the :R variable modifier, which returns the filename root
|
|
# without the extension.
|
|
|
|
.if ${a/b/c:L:R} != "a/b/c"
|
|
. error
|
|
.endif
|
|
|
|
.if ${def:L:R} != "def"
|
|
. error
|
|
.endif
|
|
|
|
.if ${a.b.c:L:R} != "a.b"
|
|
. error
|
|
.endif
|
|
|
|
.if ${a.b/c:L:R} != "a"
|
|
. error
|
|
.endif
|
|
|
|
.if ${a:L:R} != "a"
|
|
. error
|
|
.endif
|
|
|
|
.if ${a.a:L:R} != "a"
|
|
. error
|
|
.endif
|
|
|
|
.if ${.gitignore:L:R} != ""
|
|
. error
|
|
.endif
|
|
|
|
.if ${trailing/:L:R} != "trailing/"
|
|
. error
|
|
.endif
|
|
|
|
all:
|