makefile generation fix