Update docs directives.
authorBrian Aker <brian@tangent.org>
Wed, 19 Sep 2012 05:20:46 +0000 (01:20 -0400)
committerBrian Aker <brian@tangent.org>
Wed, 19 Sep 2012 05:20:46 +0000 (01:20 -0400)
Makefile.am
docs/include.am

index 4394dec47fa2009b9aacdb0636a9a1d944cf28c8..b0babecaacf8e0be4246944fa29df188b30d7254 100644 (file)
@@ -54,8 +54,6 @@ include win32/include.am
 
 include m4/include.am
 
-docs: html man
-
 TESTS += ${check_PROGRAMS}
 
 EXTRA_DIST+= ${man_MANS}
index 55e98972018b73bdb5548c4bd6358f0ffb3bc765..4a69ef070a37716de976201264830d7bb671d61f 100644 (file)
@@ -135,6 +135,9 @@ man_MANS+= docs/man/memslap.1
 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"
@@ -158,17 +161,20 @@ install-html: html-local
        @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."
@@ -251,4 +257,8 @@ doctest:
        @echo "Testing of doctests in the sources finished, look at the " \
              "results in $(SPHINX_BUILDDIR)/doctest/output.txt."
 
+else
+
+docs:
+
 endif