Move much of deployment to the Makefile.