[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: install-exec-hook
From: |
Alexandre Duret-Lutz |
Subject: |
Re: install-exec-hook |
Date: |
Tue, 12 Oct 2004 13:56:16 +0200 |
On Tue, Oct 12, 2004 at 01:30:05PM +0200, Markus Friedrich wrote:
>
> testdir = mydir
>
> test_SCRIPTS = testscript
>
> install-exec-hook:
> @echo "Is executed BEFORE testscript is installed"
> @echo "in mydir (BUG?)"
> @echo "Is executed AFTER the installation of scripts"
> @wcho "defined by bin_SCIRPTS (OK!)"
This is expected because bin_SCRIPTS is installed by install-exec, and
test_SCRIPTS is installed by install-data. If you really want
testscript installed by install-exec, rename testdir as testexecdir or
something similar.
11.2 The two parts of install
=============================
Automake generates separate `install-data' and `install-exec' rules, 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. `install-exec' installs platform-dependent
files, and `install-data' installs platform-independent files. The
`install' target depends on both of these targets. While Automake
tries to automatically segregate objects into the correct category, the
`Makefile.am' author is, in the end, responsible for making sure this
is done correctly.
Variables using the standard directory prefixes `data', `info',
`man', `include', `oldinclude', `pkgdata', or `pkginclude' (e.g.
`data_DATA') are installed by `install-data'.
Variables using the standard directory prefixes `bin', `sbin',
`libexec', `sysconf', `localstate', `lib', or `pkglib' (e.g.
`bin_PROGRAMS') are installed by `install-exec'.
Any variable using a user-defined directory prefix with `exec' in
the name (e.g. `myexecbin_PROGRAMS' is installed by `install-exec'.
All other user-defined prefixes are installed by `install-data'.
- install-exec-hook, Markus Friedrich, 2004/10/12
- Re: install-exec-hook,
Alexandre Duret-Lutz <=