Merge branch 'c++-api'
[jansson.git] / doc / Makefile.am
index 49c98c9..1a3f560 100644 (file)
@@ -1,4 +1,19 @@
-EXTRA_DIST = conf.py apiref.rst index.rst
+EXTRA_DIST = conf.py apiref.rst changes.rst gettingstarted.rst         \
+       github_commits.c index.rst tutorial.rst ext/refcounting.py
+
+SPHINXBUILD = sphinx-build
+SPHINXOPTS = -d _build/doctrees -W
+
+html-local:
+       $(SPHINXBUILD) -b html $(SPHINXOPTS) $(srcdir) _build/html
+
+install-html-local: html
+       mkdir -p $(DESTDIR)$(htmldir)
+       cp -r _build/html $(DESTDIR)$(htmldir)
+
+uninstall-local:
+       rm -rf $(DESTDIR)$(htmldir)
 
 clean-local:
-       rm -rf .build
+       rm -rf _build
+       rm -f ext/refcounting.pyc changes.rst