On Fri, Mar 26, 2010 at 12:09:48PM +0100, Marc Espie wrote:
> I've been using this a few times, and it's really useful for tweaking
> big makefiles in ports, or very compact for other stuff.
>
> It's like this, both our make(1) and gmake(1) support recursive variables,
> so that:
[snip]
... you have a really strong hammer:
.for module in ${modules}
. for program in ${${module}.programs}
...
. include ...
...
. endfor
.endfor
I'm using something similar to track dependencies of our source tree at
build time so make knows everything and hits every nail i'm coming across.
I haven't competed this approach to the ``usual'', bsd-style one, but
it's working out for me pretty well. It has less IO impact than i
initially thought - my theory is that it should speed up parallel builds.
And back to my tree...
Simon