GNU Autoconf, Automake, and Libtool
by Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
13.3. Install Hooks
As with dist, the install process allows for generic targets that can be used when the existing install functionality is not enough. Two types of targets can be used: local rules and hooks.
A local rule is named either install-exec-local or install-data-local, and is run during the course of the normal install procedure. This rule can be used to install things in ways that Automake usually does not support.
In libgcj, for instance, we generate a number of header files, one per Java class. We want to install them in 'pkgincludedir', but we want to preserve the hierarchical structure of the headers (for example, we want 'java/lang/String.h' to be installed as '$(pkgincludedir)/java/lang/String.h', not '$(pkgincludedir)/String.h' ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access