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' ...

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.