add awk script to generate Makefile