Put common commands in a Makefile

This makes a couple of things more convenient and should make it easier
to contribute for others.