Skip to content

Instantly share code, notes, and snippets.

@jaylett
Created May 30, 2014 09:53
Show Gist options
  • Select an option

  • Save jaylett/23877fd138fac9cfe06b to your computer and use it in GitHub Desktop.

Select an option

Save jaylett/23877fd138fac9cfe06b to your computer and use it in GitHub Desktop.
python3 docs building, but Debian/Ubuntu-specific
diff --git a/xapian-bindings/python3/Makefile.am b/xapian-bindings/python3/Makefile.am
index 1b714bc..50561cb 100755
--- a/xapian-bindings/python3/Makefile.am
+++ b/xapian-bindings/python3/Makefile.am
@@ -163,8 +163,10 @@ dist-hook: $(sphinxdocs)
test -d $(distdir)/docs || mkdir $(distdir)/docs
cp -R -p docs/html $(distdir)/docs
+SPHINX_BUILD = /usr/share/sphinx/scripts/python3/sphinx-build
+
$(sphinxdocs): xapian/__init__.py docs/conf.py $(srcdir)/docs/*.rst $(dist_exampledata_DATA)
- PYTHONPATH=..:$$PYTHONPATH sphinx-build -b html -d doctrees -c docs $(srcdir)/docs docs/html
+ PYTHONPATH=..:$$PYTHONPATH $(SPHINX_BUILD) -b html -d doctrees -c docs $(srcdir)/docs docs/html
@echo
@echo "Build finished. The HTML pages are in docs/html."
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment