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: Boris Kolpackov
Subject: Re: suddenly, "recursive make considered harmful" makes piles of sense
Date: Tue, 18 Jan 2005 23:02:23 +0000 (UTC)
User-agent: nn/6.6.5+RFC1522

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.

-boris





reply via email to

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