[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recursive make [Was: Help-make Digest, Vol 77, Issue 5]
From: |
Philip Guenther |
Subject: |
Re: recursive make [Was: Help-make Digest, Vol 77, Issue 5] |
Date: |
Sat, 11 Apr 2009 12:27:21 -0700 |
On Fri, Apr 10, 2009 at 4:10 PM, Michael R. Head
<address@hidden> wrote:
...
> So this is a common pattern, but we all know that it leads to a lot of
> extra invocations of make and extra output when, most of the time,
> nothing needs to be done.
>
> I'm wondering if it's sensible to do something along these lines, which
> I haven't tried and may require a .SECONDEXPANSION:
>
> $(SUBDIRS): %: $(find % -type f)
> $(MAKE) -C $@
>
> Is this crazy? It would probably be bad on NFS due to an large number of
> stats, but on a local filesystem it seems like it would be a win.
Since you don't describe the goal of that rule and it doesn't work as
is, I'm neither sure how to correct it nor what gain you think it
would provide. It looks like you're trying to filter out SUBDIRS
entries that don't actually have files in them, but why would you have
added those to SUBDIRS to begin with?
(If you're really concerned about the overhead or extra output
generated by recursive make, then why not try the non-recursive
approach?)
Philip Guenther
- Re: Help-make Digest, Vol 77, Issue 5, xiangfeng shen, 2009/04/09
- Re: Help-make Digest, Vol 77, Issue 5, Sam Ravnborg, 2009/04/09
- Re: Help-make Digest, Vol 77, Issue 5, xiangfeng shen, 2009/04/09
- Re: Help-make Digest, Vol 77, Issue 5, Sam Ravnborg, 2009/04/10
- Re: Help-make Digest, Vol 77, Issue 5, xiangfeng shen, 2009/04/10
- Re: Help-make Digest, Vol 77, Issue 5, Paul Smith, 2009/04/10
- Re: recursive make [Was: Help-make Digest, Vol 77, Issue 5], Michael R. Head, 2009/04/10
- Re: recursive make [Was: Help-make Digest, Vol 77, Issue 5],
Philip Guenther <=
- Re: recursive make [Was: Help-make Digest, Vol 77, Issue 5], Michael R. Head, 2009/04/11
- Re: recursive make [Was: Help-make Digest, Vol 77, Issue 5], Sam Ravnborg, 2009/04/11
- Re: recursive make [Was: Help-make Digest, Vol 77, Issue 5], Paul Smith, 2009/04/11
- Re: recursive make [Was: Help-make Digest, Vol 77, Issue 5], Michael R. Head, 2009/04/11