help-make
[Top][All Lists]
Advanced

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

Re: Why does redirecting to other makefile execute rules differently?


From: Maxim Yegorushkin
Subject: Re: Why does redirecting to other makefile execute rules differently?
Date: Sat, 13 Feb 2010 15:35:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1

On 09/02/10 17:46, Philip Guenther wrote:

[]

That said, this design seems needlessly inefficient.  Instead of
recursively invoking with the correct makefile, why not just 'include'
that makefile?

Every time you recursively invoke make to do something, you
effectively tell make "for *this* target, forget everything you know,
flush the directory cache, ignore that you've already determined that
various files don't need to be built; if the question arises, do that
work all over again!"  It's like people are afraid their build systems
will be too fast.

Can not agree more. That great paper "Recursive Make Considered Harmful" explains it in every tiny detail.






reply via email to

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