* update Makefile generator for CHICKEN.

I don't test it, though.
* use gsub instead of scan.map.join.
* remove unused assignment in Java.