diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-04 15:03:40 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-12-04 18:07:47 +0100 |
commit | 2ad562057a6d2f19056e90ece9b7c8be396e4662 (patch) | |
tree | 6fd42da3376de5a958195c21396895faf549cd49 /buildtools/wafsamba | |
parent | 1c5c492f7e563ec7b21edee3da7fd0d764ccc01e (diff) | |
download | samba-2ad562057a6d2f19056e90ece9b7c8be396e4662.tar.gz samba-2ad562057a6d2f19056e90ece9b7c8be396e4662.tar.bz2 samba-2ad562057a6d2f19056e90ece9b7c8be396e4662.zip |
BUG 9459: Install manpages only if we install the target.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Dec 4 18:07:47 CET 2012 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 59d3a2c02f..94096698e7 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -287,7 +287,7 @@ def SAMBA_LIBRARY(bld, libname, source, if (manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']): - bld.MANPAGES(manpages) + bld.MANPAGES(manpages, install) Build.BuildContext.SAMBA_LIBRARY = SAMBA_LIBRARY @@ -383,7 +383,7 @@ def SAMBA_BINARY(bld, binname, source, ) if manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']: - bld.MANPAGES(manpages) + bld.MANPAGES(manpages, install) Build.BuildContext.SAMBA_BINARY = SAMBA_BINARY @@ -771,7 +771,7 @@ def INSTALL_DIRS(bld, destdir, dirs): Build.BuildContext.INSTALL_DIRS = INSTALL_DIRS -def MANPAGES(bld, manpages): +def MANPAGES(bld, manpages, install): '''build and install manual pages''' bld.env.MAN_XSL = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' for m in manpages.split(): @@ -782,7 +782,8 @@ def MANPAGES(bld, manpages): group='final', rule='${XSLTPROC} --xinclude -o ${TGT} --nonet ${MAN_XSL} ${SRC}' ) - bld.INSTALL_FILES('${MANDIR}/man%s' % m[-1], m, flat=True) + if install: + bld.INSTALL_FILES('${MANDIR}/man%s' % m[-1], m, flat=True) Build.BuildContext.MANPAGES = MANPAGES def SAMBAMANPAGES(bld, manpages): |