简体   繁体   English

Autotools套件放错了“ man”文件,导致安装失败

[英]Autotools suite misplaces “man” file leading to installation failure

In a software I have to tweak, the man file is located under doc/ along with a simple Makefile.am file: 在我必须调整的软件中,该man文件和一个简单的Makefile.am文件位于doc/下:

man_MANS = software.1
EXTRA_DIST = $(man_MANS)

Upon installation, I expect make install to copy the manual under /usr/local/share/man/ , but the script - instead - will try to install the man under /usr/local/share/man/man1 - which does not exist - throwing an error and stopping the process. 安装后,我希望make install将手册复制到/usr/local/share/man/ ,但是脚本-会尝试将man安装在/usr/local/share/man/man1 -该脚本不存在-引发错误并停止该过程。

I would expect a similar behavior if I assigned software.1 to man1_MANS, though. 但是,如果我将software.1分配给man1_MANS,我会期望得到类似的行为。

What is going on ? 到底是怎么回事 ? How is this possible that automake does not create non-existing folders ? automake如何不创建不存在的文件夹?

man_MANS will try to figure out in which section to put the manual depending on the extension you gave it, so it is correct in this case that it would install into ${mandir}/man1 . man_MANS会根据您提供的扩展名尝试找出将手册放入哪个部分,因此在这种情况下,它将安装到${mandir}/man1是正确的。

Since you say that MKDIR_P is empty in your output, try to ensure that AC_PROG_MKDIR_P is being called in your configure.ac (it should be automatically called by AM_INIT_AUTOMAKE but since you said it's old it might have some issues). 由于您说输出中的MKDIR_P为空,因此请尝试确保在configure.ac中调用了AC_PROG_MKDIR_PAM_INIT_AUTOMAKE应该自动调用它,但是由于您说的很旧,可能会出现一些问题)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM