154 GNU make
Here are the variables Makefiles should use to specify directories to put these various
kinds of files in:
‘datarootdir’
The root of the directory tree for read-only architecture-independent data files.
This should normally be /usr/local/share, but write it as $(prefix)/share.
(If you are using Autoconf, write it as ‘@datarootdir@’.) ‘datadir’’s default
value is based on this variable; so are ‘infodir’, ‘mandir’, and others.
‘datadir’ The directory for installing idiosyncratic read-only architecture-independent
data files for this program. This is usually the same place as ‘datarootdir’,
but we use the two separate variables so that you can move these program-
specific files without altering the location for Info files, man pages, etc.
This should normally be /usr/local/share, but write it as $(datarootdir).
(If you are using Autoconf, write it as ‘@datadir@’.)
The definition of ‘datadir’ is the same for all packages, so you should install
your data in a subdirectory thereof. Most packages install their data under
$(datadir)/package-name/.
‘sysconfdir’
The directory for installing read-only data files that pertain to a single machine–
that is to say, files for configuring a host. Mailer and network configura-
tion files, /etc/passwd, and so forth belong here. All the files in this direc-
tory should be ordinary ASCII text files. This directory should normally be
/usr/local/etc, but write it as $(prefix)/etc. (If you are using Autoconf,
write it as ‘@sysconfdir@’.)
Do not install executables here in this directory (they probably belong in
$(libexecdir) or $(sbindir)). Also do not install files that are modified in
the normal course of their use (programs whose purpose is to change the config-
uration of the system excluded). Those probably belong in $(localstatedir).
‘sharedstatedir’
The directory for installing architecture-independent data files which the
programs modify while they run. This should normally be /usr/local/com,
but write it as $(prefix)/com. (If you are using Autoconf, write it as
‘@sharedstatedir@’.)
‘localstatedir’
The directory for installing data files which the programs modify while they
run, and that pertain to one specific machine. Users should never need
to modify files in this directory to configure the package’s operation; put
such configuration information in separate files that go in $(datadir) or
$(sysconfdir). $(localstatedir) should normally be /usr/local/var,
but write it as $(prefix)/var. (If you are using Autoconf, write it as
‘@localstatedir@’.)
‘runstatedir’
The directory for installing data files which the programs modify while they run,
that pertain to one specific machine, and which need not persist longer than
the execution of the program—which is generally long-lived, for example, until
Comentários a estes Manuais