Move the build.sh stuff to a Makefile.