X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Finclude.am;h=4a69ef070a37716de976201264830d7bb671d61f;hb=cf663b377e1ef2ae8e4b7166e72562c37f59c410;hp=070a36c3f95fc9183e0280609f715bbb53f42226;hpb=68ad48824e7162a490cce315756c5fa3f98d3e31;p=awesomized%2Flibmemcached diff --git a/docs/include.am b/docs/include.am index 070a36c3..4a69ef07 100644 --- a/docs/include.am +++ b/docs/include.am @@ -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 ' where is one of" @echo " html to make standalone HTML files" @@ -154,17 +157,24 @@ sphinx-help: @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" -html-local: docs/conf.py changes +install-html: html-local + @rm -r -f /var/www/libmemcached/* + @cp -r docs/html /var/www/libmemcached + +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." @@ -247,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