简体   繁体   English

Autotools:程序安装路径

[英]Autotools: PROGRAMS installation paths

In the typical case, when you need to build binaries and install them I could use something like:在典型情况下,当您需要构建二进制文件并安装它们时,我可以使用以下内容:

bin_PROGMRAMS: foo
foo_SOURCES: goo.c

or或者

sbin_PROGRAMS: foo
foo_SOURCES: goo.c

This means that foo will be built, and then be installed in $(prefix)/bin or $(prefix)/sbin .这意味着将构建 foo ,然后将其安装在$(prefix)/bin$(prefix)/sbin However, if instead of bin_PROGRAMS you use data_PROGRAMS automake will not allow this.但是,如果您使用data_PROGRAMS而不是bin_PROGRAMS ,则 automake 将不允许这样做。

The question: What is the full list of paths that are allowed for binaries ("PROGRAMS") installation?问题:二进制文件(“程序”)安装允许的完整路径列表是什么?

The full list of predefined installation directories allowed for PROGRAMS is: PROGRAMS允许的预定义安装目录的完整列表是:

‘bindir’, ‘sbindir’, ‘libexecdir’, ‘pkglibdir’

Full list of similar standard paths can be found in the auto-book可以在 自动书中找到类似标准路径的完整列表

EDIT: the list above is not correct, I'm leaving it here just to give context to the comment section , see below:编辑:上面的列表不正确,我把它留在这里只是为了给评论部分提供上下文,见下文:

It appears the auto-book is outdated.看来自动书已经过时了。 the correct list of installation directories is:正确的安装目录列表是:

bindir, sbindir, libexecdir, pkglibexecdir

https://www.gnu.org/software/automake/manual/html_node/Program-Sources.html#Program-Sources https://www.gnu.org/software/automake/manual/html_node/Program-Sources.html#Program-Sources

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

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