Boris Kolpackov wrote:

Noel Yap <[EMAIL PROTECTED]> 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



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to