r8955: Move a bit more of the build process to the Makefile