From: Brian Aker Date: Mon, 1 Oct 2012 03:44:27 +0000 (-0400) Subject: Onl allow "man" if sphinx-build actually supports it. X-Git-Tag: 1.0.12~14 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ed60da56bcd4780cd616e76dea9a9886acc2ae95;p=m6w6%2Flibmemcached Onl allow "man" if sphinx-build actually supports it. --- diff --git a/docs/include.am b/docs/include.am index c1275500..b2df2533 100644 --- a/docs/include.am +++ b/docs/include.am @@ -18,8 +18,6 @@ ALLSPHINXOPTS = -d $(SPHINX_BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOP if HAVE_SPHINX -docs: html man - sphinx-help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @@ -118,11 +116,18 @@ text: docs/conf.py changes @echo @echo "Build finished. The text files are in $(SPHINX_BUILDDIR)/text." -man: docs/conf.py changes +if HAVE_RECENT_SPHINX +man: PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) ${top_srcdir}/man @echo @echo "Build finished. The manual pages are in ${top_srcdir}/man." +else + +man: + +endif + changes: docs/conf.py linkcheck PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/changes @echo