Added self-test to makefile.

* Added 'selftest' target to makefile which builds each target and
  command from scratch to make sure it runs.  Reports results in a basic
  way similar to 'go test'.
* Added variable for makefile name.