Remove java-specific code from Makefile