update gen.sh Makefile