Fix make docs rule to work with out-of-tree builds.