Reputation: 15976
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?
Upvotes: 0
Views: 303
Reputation: 15976
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
Upvotes: 1