makefile: add release-* targets

This code is largely copied from [michaelficarra/commonjs-everywhere][1].


[1]: https://github.com/michaelficarra/commonjs-everywhere/blob/master/Makefile