This is an alternative to commit 97966e6d65bd3d450f12c7bb41af5f9eafd35a60. The problem solved by this commit was that doc/guix.1 was still generated by 'help2man' when doing a VPATH build from a tarball. It is still not clear to me why this problem was happening. My guess is that this was related to the $(sub_commands_mans) variable behind composed of generated files which were confusing Make in a weird way.
Anyway, inspired by what is done by Automake for info manuals I have tried to build man pages in $(srcdir), which is fixing the issue too. The bonus is that now all the documentation is consistently built in $(srcdir) and that we avoid adding another "case $? ..." trick. Mathieu Lirzin (4): Revert "build: Do not remake doc/guix.1." build: Make 'guix' man page depend on scripts/guix.in. build: Build man pages in $(srcdir). build: Rewrite comments for man pages. doc.am | 67 ++++++++++++++++++++++++++++++++---------------------------------- 1 file changed, 32 insertions(+), 35 deletions(-) -- 2.7.0