[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Add in missing javahl-java and javahl-javah dependencies

From: David James <staple_at_gmail.com>
Date: 2004-09-09 22:07:16 CEST

Add in missing javahl-java and javahl-javah dependencies

This patch fixes the dependency problems with javahl-java and
javahl-javah by making all .class files dependent on all .java files

- We don't currently have any system for parsing the Java dependencies
- Make each %.class file dependent on its associated %.java file. This
is clearly wrong because, sometimes, if you change one .java file,
other .class will need to be recompiled.
- Because the dependencies are wrong, always rebuild the .class files,
regardless of the dependencies.
A BETTER SOLUTION: (implemented by this patch)
- Make each of the .class files dependent on all of the .java files
- With the new, correct dependencies, make will know when to rebuild
the .class files (i.e. only when the .java files change!)

Q: Why not just parse the dependencies from the Java files?
A: We could. But that solution might be overkill, considering that we
don't have a lot of Java files. We'd also need to require that users
install jikes (or a similar dependency-checker).

The patch is attached.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Thu Sep 9 22:07:55 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.