script for generating Makefiles