c98f603243
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).
17 lines
323 B
Makefile
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}
|