Unify build logic; move DocBook-XML sources into docs tree.