Search code examples
makefilegnu-makeautotoolsgnu-coreutils

Is there a typical way to disable manpages generation using autotools?


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

  • 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.