[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dependancy DB & recursive make
From: |
Tristan Van Berkom |
Subject: |
Dependancy DB & recursive make |
Date: |
Mon, 14 Mar 2005 12:07:43 -0500 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20040913) |
Hi all,
I have an incremental recursive make environment where every src
directory evaluates the dependancy files of its dependancy directories
to see if make should recurse to build those dependancies in other
directories;
example:
`application' depends on `library', so `application' includes the
dependancies previously generated by `gcc' from `library' directory.
The problem is that dependancies are not getting re-evaluated over
sub-makes; resulting in useless `$(MAKE)' invokations.
example:
- `app' depends on `lib-one' and `lib-two'
- `lib-two' depends on `lib-one'
- make in `app' dir recurses into `lib-one' and rebuilds
- make in `app' dir recurses into `lib-two'
- make in `lib-two' dir recurses into `lib-one' dir
(Nothing to do in lib-one dir "duh !")
- make in `lib-two' dir rebuilds
- make in `app' dir rebuilds
Is there anything I can do so that make updates its table of
dependancies properly or sub-makes start off with a clean slate of
dependancies ?
Cheers,
-Tristan
- Dependancy DB & recursive make,
Tristan Van Berkom <=