[1561] in Athena Bugs
(VS2000) Version 6.0R (and probably others) makedepend
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Tue Dec 20 01:02:31 1988
Date: Tue, 20 Dec 88 01:01:44 EST
From: Jonathan I. Kamens <jik@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System type, version: (VS2000) Version 6.0R
System name: m11-116-2
What's wrong:
makedepend ignores paths leading up to files. For example, if in my
Makefile I have a dependency on /mit/jik/src/lib/foo.c, which depends
on other header files in /mit/jik/src/lib, then each line of stuff
that makedepend puts into my Makefile will start with foo.o, not
/mit/jik/src/lib/foo.o. This is all fine and good if I plan on
compiling foo.o into the current working directory, but I do *not*
plan to do that, and my Makefile does *not* do that -- it compiles
into /mit/jik/src/lib/foo.o. As a result of that, it doesn't
recognize the dependencies created by makedepend when I run make, and
therefore files in /mit/jik/src/lib do not get remade when I run make
after modifying their header files.
What should have happened:
makedepend should recognize the rules I've given which tell it that
foo.o is going to be placed in a different directory, and prepend that
directory path to the dependency lines it outputs.
--> Jonathan Kamens
Project Athena Watchmaker
SIPB (Student Information Processing Board) Member
Volunteer OLC Consultant
jik@ATHENA.MIT.EDU