help-make
[Top][All Lists]
Advanced

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

Re: only run submake if that submake needs to be run?


From: Noel Yap
Subject: Re: only run submake if that submake needs to be run?
Date: Fri, 20 Aug 2004 14:33:46 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Boris Kolpackov wrote:

Noel Yap <address@hidden> writes:

The first one, definitely. You need to write the rules such that they don't care about the current directory.

I think David meant he wants to be able to build parts of the project which
most likely won't work if you have one big makefile.

This is still possible. What I do is have the directory's GNUmakefile include all GNUprivate.mk's within it and its subdirectories. The GNUmakefile is just a hook (and all directory's GNUmakefile's look exactly the same). It's the GNUprivate.mk's that define all the interesting stuff.

Noel





reply via email to

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