[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dependencies across directories
From: |
Rares Vernica |
Subject: |
dependencies across directories |
Date: |
Mon, 28 Apr 2008 15:10:20 -0700 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070403) |
Hello,
I have a problem with dependencies across directories. Let me describe it:
We have the following directory structure:
/tmp/makefiletest/
makefile.inc
A/
a.h
a1.h
makefile
B/
b.cc
makefile
makefile.inc
---
VPATH /tmp/makefiletest
A/makefile
---
a.h: a1.h
touch $@
B/makefile
---
b.o: A/a.h
/tmp/makefiletest/B> make b.o
The goal of this test if to have b.cc recompiled if a.h or a1.h changes.
If a.h changes, it works, but if a1.h changes it does not work. I am
aware that the A/makefile file is not read, and so the dependency
between a1.h and a.h is not discovered.
We follow this makefile pattern for our codebase, and only recently I
discovered this "bug" in our pattern. Is there an easy way to fix it
without braking everything?
Thanks,
Ray
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- dependencies across directories,
Rares Vernica <=