Simplify the makefile.

Get rid of a build dependency and use a bash script instead. Also builds
separate archives for each arch/os.