Reconstruct build files.

The build file in test is used to test.
Merge branch 'refactor-targets'
Add targets for distribution archive.
Merge branch 'feature-release'