Add build script.
Fix makefile typo.
Finish build script.