change generate script to allow makefile changes