1 # $NetBSD: forloop.mk,v 1.7 2020/11/03 17:37:57 rillig Exp $
5 LIST= one "two and three" four "five"
17 CFL= -I/this -I"This or that" -Ithat "-DTHIS=\"this and that\""
30 . error ${.newline}${cfl} != ${.newline}${CFL}
37 # Since at least 1993, iteration stops at the first newline.
38 # Back then, the .newline variable didn't exist, therefore it was unlikely
39 # that a newline ever occurred.
40 . for var in a${.newline}b${.newline}c
41 . info newline-item=(${var})
46 .for a b in ${LIST} ${LIST:tu} ${XTRA_LIST}
51 @echo We expect an error next:
52 @(cd ${.CURDIR} && ${.MAKE} -f ${MAKEFILE} for-fail) && \
53 { echo "Oops that should have failed!"; exit 1; } || echo OK