Main makefile with java prep.