1 # $Id: forloop.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
5 LIST
= one
"two and three" four
"five"
14 X
!= echo
'x=$x' >&2; echo
17 CFL
= -I
/this
-I
"This or that" -Ithat
"-DTHIS=\"this and that\""
20 X
!= echo
'x=$x' >&2; echo
27 X
!= echo
'cfl=${cfl}' >&2; echo
30 .error
${.newline
}'${cfl}' != ${.newline
}'${CFL}'
34 X
!= echo
'a=$a b=$b' >&2; echo
38 .for a b in
${LIST} ${LIST
:tu
} ${XTRA_LIST}
39 X
!= echo
'a=$a b=$b' >&2; echo
43 @echo We expect an error next
:
44 @
(cd
${.CURDIR
} && ${.MAKE
} -f
${MAKEFILE} for-fail
) && \
45 { echo
"Oops that should have failed!"; exit
1; } || echo OK