Build documentation in distcheck-hook
authorPetri Lehtinen <petri@digip.org>
Sat, 24 Oct 2009 21:18:03 +0000 (00:18 +0300)
committerPetri Lehtinen <petri@digip.org>
Sat, 24 Oct 2009 21:20:23 +0000 (00:20 +0300)
This is to check that all the documentation files are distributed
before releasing.

Makefile.am

index 01b958c..e64f397 100644 (file)
@@ -1,2 +1,7 @@
 EXTRA_DIST = CHANGES LICENSE README.rst
 SUBDIRS = doc src test
+
+distcheck-hook:
+       sphinx-build -b html -W \
+               $(distdir)/doc \
+               $(distdir)/_build/doc/.build/html