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
. However, if instead of bin_PROGRAMS
you use data_PROGRAMS
automake will not allow this.
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:
‘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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.