Split script generation into multiple batch files.

At the same time the makefile has been updated, but that file is not
included in the GIT archive.