freebsd-dev/contrib/bmake/unit-tests/varmod-root.mk
Simon J. Gerraty 129043849f Merge bmake-20211212
commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
2021-12-18 10:09:14 -08:00

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: