Fixed bug running Makefile through the codegen.