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 Value
PREFIX architecture-independent files /usr/local
EXEC_PREFIX architecture-dependent files PREFIX
BINDIR user executables EXEC_PREFIX/bin
SBINDIR user executables EXEC_PREFIX/sbin
LIBEXECDIR program executables EXEC_PREFIX/libexec
SYSCONFDIR read-only single-machine data PREFIX/etc
SHAREDSTATEDIR modifiable architecture-independent data PREFIX/com
LOCALSTATEDIR modifiable single-machine data PREFIX/var
LIBDIR object code libraries EXEC_PREFIX/lib
INCLUDEDIR C header files PREFIX/include
OLDINCLUDEDIR C header files for non-gcc /usr/include
DATAROOTDIR read-only arch.-independent data root PREFIX/share
DATADIR read-only architecture-independent data DATAROOTDIR
INFODIR info documentation DATAROOTDIR/info
LOCALEDIR locale-dependent data DATAROOTDIR/locale
MANDIR man documentation DATAROOTDIR/man
DOCDIR documentation root DATAROOTDIR/doc/APPNAME
HTMLDIR html documentation DOCDIR
DVIDIR dvi documentation DOCDIR
PDFDIR pdf documentation DOCDIR
PSDIR ps documentation DOCDIR
waflib.Tools.gnu_dirs.configure(conf)[source]

Read 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]

Add lots of command-line options, for example:

--exec-prefix: EXEC_PREFIX

Previous topic

cs

Next topic

intltool

This Page