Re: make or kmod.mk broken

From: Ruslan Ermilov <ru_at_freebsd.org>
Date: Sat, 14 Jan 2006 22:28:08 +0200
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
> > 	_at_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

Received on Sat Jan 14 2006 - 19:31:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:50 UTC