adding script to generate makefiles