summaryrefslogtreecommitdiff
path: root/regress/make-quoting/files/continue.mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-05-15 21:10:16 +0000
committerrillig <rillig@pkgsrc.org>2005-05-15 21:10:16 +0000
commit499c354a9ac847f5ee2d21bddfe4dd0130349d44 (patch)
tree7c23df800382e83a37466fc797fae547b1ab2207 /regress/make-quoting/files/continue.mk
parentdf1ec91efc864b8106bbb0c18d3c6728391f4182 (diff)
downloadpkgsrc-499c354a9ac847f5ee2d21bddfe4dd0130349d44.tar.gz
Imported make-quoting, a regression test to make sure various weird quoting
styles stay valid when updating the pkgsrc make(1) program. The test cases also serve as kind of demonstration how things work inside make(1).
Diffstat (limited to 'regress/make-quoting/files/continue.mk')
-rw-r--r--regress/make-quoting/files/continue.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/regress/make-quoting/files/continue.mk b/regress/make-quoting/files/continue.mk
new file mode 100644
index 00000000000..b82c1946d06
--- /dev/null
+++ b/regress/make-quoting/files/continue.mk
@@ -0,0 +1,19 @@
+# $NetBSD: continue.mk,v 1.1.1.1 2005/05/15 21:10:16 rillig Exp $
+#
+# This file demonstrates that .for variables that end in a backslash are
+# interpreted as line-continuations when they are placed at the end of a
+# line.
+#
+
+LIST= a:\ a:\foo.bar
+
+.PHONY: all
+all:
+.for l in ${LIST}
+ echo ${l:Q}
+ echo "second line"
+.endfor
+.for l in ${LIST}
+ echo ${l:Q}""
+ echo "second line"
+.endfor