summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/varquote.mk
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/unit-tests/varquote.mk')
-rw-r--r--usr.bin/make/unit-tests/varquote.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.bin/make/unit-tests/varquote.mk b/usr.bin/make/unit-tests/varquote.mk
new file mode 100644
index 0000000..fb8b106
--- /dev/null
+++ b/usr.bin/make/unit-tests/varquote.mk
@@ -0,0 +1,14 @@
+# $NetBSD: varquote.mk,v 1.4 2018/12/16 18:53:34 christos Exp $
+#
+# Test VAR:q modifier
+
+.if !defined(REPROFLAGS)
+REPROFLAGS+= -fdebug-prefix-map=\$$NETBSDSRCDIR=/usr/src
+REPROFLAGS+= -fdebug-regex-map='/usr/src/(.*)/obj$$=/usr/obj/\1'
+all:
+ @${MAKE} -f ${MAKEFILE} REPROFLAGS=${REPROFLAGS:S/\$/&&/g:Q}
+ @${MAKE} -f ${MAKEFILE} REPROFLAGS=${REPROFLAGS:q}
+.else
+all:
+ @printf "%s %s\n" ${REPROFLAGS}
+.endif