使用 autotools 从源代码安装 libevent 手册页

Install libevent man pages from sourcecode with autotools

我已经使用 autotools 从源代码(来自 git 存储库)安装了 libevent。 我认为命令 'make install-man' 会安装手册页,但没有可用的。我也试过设置 './configuration --datadir' 选项但没有结果。

如何安装 libevent 手册页?

I've installed libevent from source code (from the git repository) with autotools. I thought the command 'make install-man' would install the man pages, but nothing is available.

在您使用的基于 Automake 的构建系统中,make install 将安装手册页以及其他所有内容,而 make install-man 将单独安装手册页...前提是有没有。

通过检查 libevent 源,libevent 似乎默认不提供手册页,但您可以在 configure 时打开它们的生成和安装。

I've also tried setting the './configuration --datadir' option without results.

How can I install libevent man pages?

运行 ./configure --help 查看所有可用选项的摘要(我建议在构建任何 Autotools 项目之前执行此操作)。我想您会在可用选项中看到 --enable-doxygen-man,并且我希望在您(重新)配置时打开它会导致在构建期间生成手册页并在安装期间安装。如果您足够聪明,那么您可能会想出如何构建和安装这些,但最简单的方法是重建整个项目。