Autogenerate parts of the makefile rather then calling seperate shell scripts.