Rebuild java and tests subdirectories when code changes

Right now we need to do |make clean && make| to actually rebuild because the dependencies aren't correctly set.