doc: Look in $srcdir for documentation sources 22/14622/2
authorAndrew Deason <adeason@sinenomine.net>
Wed, 12 May 2021 20:35:01 +0000 (15:35 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 13 May 2021 15:37:56 +0000 (11:37 -0400)
commit0881560e77d9d9f545eeaeeec730739dcece7c2f
tree43483e41b1713fce1dcae6ab6cd84858a9138ecc
parenta2e03e74c4959f72c90288ec85a40c037c9c6243
doc: Look in $srcdir for documentation sources

In several places, we look for documentation source files in e.g.
'doc/man-pages', 'doc/xml', etc. But if we are running an objdir
build, those directories won't exist relative to the current working
directory; we need to look in $srcdir to find them.

So, if we're running an objdir build, our man pages and other
documentation won't be installed. We don't report any error in this
case (the relevant steps are just skipped), since building the
documentation is optional, in case the doc sources are not present.

To fix this, look in $srcdir in the various places that reference doc
source files. Fixing the 'for' loops in the 'dest' and 'install'
targets in doc/man-pages requires some extra cd'ing around, because $M
is used as part of another path in the body of the loop.

Change-Id: Ic3c90ab5e64aeefe6235efb6f6ec26080d7b3a70
Reviewed-on: https://gerrit.openafs.org/14622
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
configure.ac
doc/man-pages/Makefile.in