2021-12-18 07:27:22 +00:00
|
|
|
# $NetBSD: varmod-root.mk,v 1.5 2021/12/05 22:31:58 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
|
|
|
# Tests for the :R variable modifier, which returns the filename root
|
|
|
|
# without the extension.
|
|
|
|
|
2021-12-18 07:27:22 +00:00
|
|
|
.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
|
|
|
|
|
2020-09-05 16:11:04 +00:00
|
|
|
all:
|