pkgsrc/regress/make-quoting/files/nestfor.mk
rillig c98f603243 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).
2005-05-15 21:10:16 +00:00

17 lines
323 B
Makefile

# $NetBSD: nestfor.mk,v 1.1.1.1 2005/05/15 21:10:16 rillig Exp $
#
# This file tests what happens if the same variable name is used in
# nested .for loops.
#
# The result is somewhat surprising, in that the outer i is used.
#
X= # empty
.for i in a b c
. for i in 0 1 2
X+= ${i}
. endfor
.endfor
all:
echo ${X:M*:Q}