On Wed, Oct 13, 1999 at 04:32:26PM +0200, Ruud de Rooij wrote: > Hamish Moffatt <[EMAIL PROTECTED]> writes: > > > Second question: I'm using jdk1.1.7 and having problems with > > dependencies with javac. It looks a lot smarter than it really is! > > It seems that if I have three files, class1.java which uses class2.java > > which uses class3.java, and I "javac class1.java", it compiles all 3. > > > > If I then change class3.java, and re-run "javac class1.java", > > it doesn't rebuild class3. Is there a fix to this? > > javac -depend class1.java
Hmm. That's OK, but not perfect. I put in my Makefile main.class: *.java javac -depend main.java If one of the used classes fails to compile, javac still updates main.class, so running make again doesn't do anything. Not to worry, I will stick with my complicated-but-working makefile, since the thing is nearly finished anyway. Hamish -- Hamish Moffatt VK3SB. CCs of replies on mailing lists are welcome.