make or kmod.mk broken

Ruslan Ermilov ru at freebsd.org
Sat Jan 14 12:31:08 PST 2006


On Sat, Jan 14, 2006 at 09:13:42PM +0100, Max Laier wrote:
> > This OTOH works since FOO variable is special (it's evaluated at parse
> > time):
> >
> > STUFF=  foo bar foobar
> >
> > mtest:
> > .for FOO in foo
> > 	@echo ${STUFF:M${FOO}}
> > .endfor
> 
> Okay, I knew there was a catch.  So this can be worked around, thanks for the 
> hint.
> 
More precisely, .for loops are unrolled before parsing.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060114/baf4317b/attachment.bin


More information about the freebsd-current mailing list