Commit 13de7d59 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files Make HTML doc building depend on stamp file

This patch also adds an explicit list of all files written by
sphinx (“docoutput”).

By using an explicit list the build process is more predictable
and will allow us to include the NEWS file again.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent dd1dfd9a
......@@ -48,7 +48,7 @@ MAINTAINERCLEANFILES = \
-rm -rf doc/api doc/build doc/html
rm -rf doc/api doc/html
autotools/replace_vars.sed \
......@@ -150,16 +150,18 @@ docrst = \
doc/rapi.rst \
doc/html: $(docrst) $(docpng) doc/
doc/html/.stamp: $(docrst) $(docpng) doc/
@test -n "$(SPHINX)" || \
{ echo 'sphinx-build' not found during configure; exit 1; }
mkdir -p doc/build/doctrees
PYTHONPATH=.:$(top_builddir) $(SPHINX) -q -b html \
-d doc/build/doctrees \
-d . \
-D release="$(PACKAGE_VERSION)" \
$(top_srcdir)/doc doc/html
touch "$@"
$(abs_top_srcdir)/doc $(CURDIR)/doc/html
rm -f doc/html/.buildinfo doc/html/objects.inv
touch $@
doc/html: doc/html/.stamp
docdot = \
doc/ \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment