man_MANS+= docs/man/memstat.1
if HAVE_SPHINX
+
+docs: html man
+
sphinx-help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@rm -r -f /var/www/libmemcached/*
@cp -r docs/html /var/www/libmemcached
-html-local: docs/conf.py changes docs
+docs/_static:
+ @$(mkdir_p) docs/_static
+
+html-local: docs/conf.py docs changes docs/_static
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(SPHINX_BUILDDIR)/html."
-dirhtml: docs/conf.py changes
+dirhtml: html-local
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(SPHINX_BUILDDIR)/dirhtml."
-singlehtml: docs/conf.py changes
+singlehtml: html-local
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(SPHINX_BUILDDIR)/singlehtml."
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(SPHINX_BUILDDIR)/doctest/output.txt."
+else
+
+docs:
+
endif