help-make
[Top][All Lists]
Advanced

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

Re: suddenly, "recursive make considered harmful" makes piles of sense


From: Noel Yap
Subject: Re: suddenly, "recursive make considered harmful" makes piles of sense
Date: Wed, 19 Jan 2005 08:07:55 -0500
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Boris Kolpackov wrote:

Noel Yap <address@hidden> writes:


I've seen two philosophies on this:
1. gmake within any directory will build the entire project
2. gmake within any directory will build that directory and any
  subdirectories (a la recursive make)

There is also a third "philosophy": gmake within any directory will
build that directory and all its dependencies and any subdirectories
and all their dependencies. For example:

root
 |
 +--libfoo
 |
 +--foo

Say root/foo depends on root/libfoo. If you say make inside root/foo
and root/libfoo is not up-to-date, it will be built before building
root/foo. Very handy.

Yes, indeed.

Without added maintenance to the makefiles, though, I wouldn't know how this could be implemented. Oh, wait, on second thought, if some origination state were passed into "Philosophy 1", it could avert rebuilding the entire project while still knowing about the entire dependency DAG. Pretty neat.

Thanks,
Noel





reply via email to

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