aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/forsubst.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/forsubst.mk')
-rw-r--r--contrib/bmake/unit-tests/forsubst.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/forsubst.mk b/contrib/bmake/unit-tests/forsubst.mk
new file mode 100644
index 000000000000..2923e4b369f9
--- /dev/null
+++ b/contrib/bmake/unit-tests/forsubst.mk
@@ -0,0 +1,10 @@
+# $Id: forsubst.mk,v 1.1.1.1 2014/08/30 18:57:18 sjg Exp $
+
+all: for-subst
+
+here := ${.PARSEDIR}
+# this should not run foul of the parser
+.for file in ${.PARSEFILE}
+for-subst: ${file:S;^;${here}/;g}
+ @echo ".for with :S;... OK"
+.endfor