From ed60da56bcd4780cd616e76dea9a9886acc2ae95 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 30 Sep 2012 23:44:27 -0400 Subject: [PATCH] Onl allow "man" if sphinx-build actually supports it. --- docs/include.am | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.30.2