Build documentation in distcheck-hook
[jansson.git] / Makefile.am
index af437a6..e64f397 100644 (file)
@@ -1 +1,7 @@
-SUBDIRS = src
+EXTRA_DIST = CHANGES LICENSE README.rst
+SUBDIRS = doc src test
+
+distcheck-hook:
+       sphinx-build -b html -W \
+               $(distdir)/doc \
+               $(distdir)/_build/doc/.build/html