I don't think building manpages is a built-in task of any sort. I believe it is usually just a subdirectory or specific target that is being run. You can probably just find the part of the Makefile.am responsible for building the man page and disable it. Either by removing the SUBDIR entry for the directory or by removing whatever target references the manpages target.
Is there a typical way to disable manpages generation using autotools?
-
04-07-2022 - |
Question
I am compiling an old version of GNU coreutils(version 6.10/6.11) using autotools. However when I do some modifications in the source code directory there will be some errors when generating man pages.
As I don't care about the manpage at all, I hope the default target doesn't include manpage's generation.
There might not be a general solution for all kinds of source code managed by autotools, however I believe there must be a typical approach, especially for GNU coreutils.
Any advice will be appreciated:-)
Solution 2
OTHER TIPS
The error is due to the correct path for manpages not being found ,which will be mostly docbooks.xsl (as it is for me). So find the docbooks path
find /usr -name docbooks.xsl
This will list all available paths related to docbooks.xsl.
Find the correct docbooks required by make and paste it in the file