Does anyone know how to write dependencies for Java source files that I could
use to have the default target build the .jar?
I can't say i "know" how to do it the best way, but perhaps you can use
a folder as a target? Say, "sources" is where java files are, and
"classes" is the destination folder for them, then
classes/org/perl/inline/java: sources/*.java
mkdir -p classes
javac -d classes sources/*.java
should ensure that every time a java file is updated, the javac is
invoked to compile a class file.