Next: What Gets Cleaned, Previous: Building documentation, Up: GNU Automake [Contents][Index]
Naturally, Automake handles the details of actually installing your
program once it has been built. All PROGRAMS
, SCRIPTS
,
LIBRARIES
, LISP
, DATA
and HEADERS
are
automatically installed in the appropriate places.
Automake also handles installing any specified info and man pages.
Automake generates separate install-data
and install-exec
targets, in case the installer is installing on multiple machines which
share directory structure—these targets allow the machine-independent
parts to be installed only once. The install
target depends on
both of these targets.
Automake also generates an uninstall
target, and an
installdirs
target.
It is possible to extend this mechanism by defining an
install-exec-local
or install-data-local
target. If these
targets exist, they will be run at ‘make install’ time.
Variables using the standard directory prefixes ‘data’, ‘info’, ‘man’, ‘include’, ‘oldinclude’, ‘pkgdata’, or ‘pkginclude’ (eg ‘data_DATA’) are installed by ‘install-data’.
Variables using the standard directory prefixes ‘bin’, ‘sbin’, ‘libexec’, ‘sysconf’, ‘localstate’, ‘lib’, or ‘pkglib’ (eg ‘bin_PROGRAMS’) are installed by ‘install-exec’.
Any variable using a user-defined directory prefix with ‘exec’ in the name (eg ‘myexecbin_PROGRAMS’ is installed by ‘install-exec’. All other user-defined prefixes are installed by ‘install-data’.