Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
403 views
in Technique[技术] by (71.8m points)

autotools - 自动工具:PROGRAMS安装路径(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 automake代替bin_PROGRAMS ,则automake不允许这样做。)

The question: What is the full list of paths that are allowed for binaries ("PROGRAMS") installation?

(问题:二进制文件(“程序”)安装所允许的路径的完整列表是什么?)

  ask by Omer Dagan translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...