summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-06-17 08:49:36 +0200
committerStefan Metzmacher <metze@samba.org>2010-06-17 09:11:57 +0200
commitb0b2b4ff8bbcf80976b95b587aa7427c70c11b06 (patch)
tree60dd9101eff572367bca8f69a76d3e184f52b8da
parente80f576db66ad04592ac436ed74ceb9b96452060 (diff)
downloadsamba-b0b2b4ff8bbcf80976b95b587aa7427c70c11b06.tar.gz
samba-b0b2b4ff8bbcf80976b95b587aa7427c70c11b06.tar.bz2
samba-b0b2b4ff8bbcf80976b95b587aa7427c70c11b06.zip
pidl/wscript: only try to build pidl manpages if pod2man is available
metze
-rw-r--r--pidl/wscript13
1 files changed, 7 insertions, 6 deletions
diff --git a/pidl/wscript b/pidl/wscript
index cdba69210f..f3814eab01 100644
--- a/pidl/wscript
+++ b/pidl/wscript
@@ -48,12 +48,13 @@ def build(bld):
link_command = 'rm -rf blib && ln -fs blib %s' % blib_bld
bld.SET_BUILD_GROUP('main')
- for src, manpage in pidl_manpages.iteritems():
- bld(rule='${PERL} ${POD2MAN} -c "Samba Documentation" ${SRC} ${TGT}',
- shell=True,
- source=src,
- install_path=os.path.dirname(bld.EXPAND_VARIABLES('${MANDIR}/'+manpage)),
- target=os.path.basename(manpage))
+ if 'POD2MAN' in bld.env and bld.env['POD2MAN'] != '':
+ for src, manpage in pidl_manpages.iteritems():
+ bld(rule='${PERL} ${POD2MAN} -c "Samba Documentation" ${SRC} ${TGT}',
+ shell=True,
+ source=src,
+ install_path=os.path.dirname(bld.EXPAND_VARIABLES('${MANDIR}/'+manpage)),
+ target=os.path.basename(manpage))
# we want to prefer the git version of the parsers if we can. Only if the
# source has changed do we want to re-run yapp