gnu_dirs

Sets various standard variables such as INCLUDEDIR. SBINDIR and others. To use this module just call:

opt.load('gnu_dirs')

and:

conf.load('gnu_dirs')

Add options for the standard GNU directories, this tool will add the options found in autotools, and will update the environment with the following installation variables:

Variable

Description

Default Value

PREFIX

installation prefix

/usr/local

EXEC_PREFIX

installation prefix for binaries

PREFIX

BINDIR

user commands

EXEC_PREFIX/bin

SBINDIR

system binaries

EXEC_PREFIX/sbin

LIBEXECDIR

program-specific binaries

EXEC_PREFIX/libexec

SYSCONFDIR

host-specific configuration

PREFIX/etc

SHAREDSTATEDIR

architecture-independent variable data

PREFIX/com

LOCALSTATEDIR

variable data

PREFIX/var

LIBDIR

object code libraries

EXEC_PREFIX/lib

INCLUDEDIR

header files

PREFIX/include

OLDINCLUDEDIR

header files for non-GCC compilers

/usr/include

DATAROOTDIR

architecture-independent data root

PREFIX/share

DATADIR

architecture-independent data

DATAROOTDIR

INFODIR

GNU “info” documentation

DATAROOTDIR/info

LOCALEDIR

locale-dependent data

DATAROOTDIR/locale

MANDIR

manual pages

DATAROOTDIR/man

DOCDIR

documentation root

DATAROOTDIR/doc/APPNAME

HTMLDIR

HTML documentation

DOCDIR

DVIDIR

DVI documentation

DOCDIR

PDFDIR

PDF documentation

DOCDIR

PSDIR

PostScript documentation

DOCDIR

waflib.Tools.gnu_dirs.configure(conf)[source]

Reads the command-line options to set lots of variables in conf.env. The variables BINDIR and LIBDIR will be overwritten.

waflib.Tools.gnu_dirs.options(opt)[source]

Adds lots of command-line options, for example:

--exec-prefix: EXEC_PREFIX