jansson/doc/Makefile.am

29 lines
737 B
Makefile
Raw Normal View History

2009-10-24 18:41:39 +08:00
EXTRA_DIST = \
conf.py apiref.rst gettingstarted.rst github_commits.c index.rst \
2009-10-24 18:41:39 +08:00
tutorial.rst ext/refcounting.py
2009-08-03 02:26:37 +08:00
SPHINXBUILD = sphinx-build
SPHINXOPTS = -d _build/doctrees -W
# Convert json_*() functions to :cfunc: cross references in
# ../CHANGES, and add a header from changes.rst.in
changes.rst: changes.rst.in ../CHANGES
set -e; \
cat changes.rst.in >$@; \
sed -r -e 's/``(json_[a-z_]+\(\))``/:cfunc:`\1`/g' ../CHANGES \
>>$@
html-local: changes.rst
$(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)
2009-08-03 02:26:37 +08:00
clean-local:
rm -rf _build
rm -f ext/refcounting.pyc changes.rst