Automate build via a Makefile.

The last time I used Makefiles was perhaps 6 to 8 years ago.  Hard to believe.