bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug] Sibling submakes: wait for other submakes before failing


From: Philip Guenther
Subject: Re: [bug] Sibling submakes: wait for other submakes before failing
Date: Sun, 13 Jun 2021 18:42:55 -0900

On Sun, Jun 13, 2021 at 6:29 PM David A. Wheeler <dwheeler@dwheeler.com> wrote:
> On Jun 13, 2021, at 5:44 PM, Alejandro Colomar (man-pages) <alx.manpages@gmail.com> wrote:
>
> Let's say there's a project with a submake for each module.

It’s counter-intuitive, but it is usually *MUCH* faster & more accurate to have a single make process
figure things out in most cases than to use recursive makes.

For more info, see “Recursive make considered harmful” by Peter Miller:
https://web.archive.org/web/20200209034547/http://aegis.sourceforge.net/auug97.pdf

+1000

In October 2001 I applied the logic of that paper to a 1/2 million line work project to cut its build time by a factor of 20 and make it reliably build the Right Stuff.  Took less than a month to win back the entire time I had spent reading the paper and working out the details of the new Makefile setup.


Philip Guenther


reply via email to

[Prev in Thread] Current Thread [Next in Thread]