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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…