2009-10-24 18:41:39 +08:00
|
|
|
EXTRA_DIST = \
|
2009-10-25 05:17:16 +08:00
|
|
|
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
|
|
|
|
2009-11-04 05:07:43 +08:00
|
|
|
SPHINXBUILD = sphinx-build
|
|
|
|
SPHINXOPTS = -d _build/doctrees -W
|
|
|
|
|
2010-01-13 03:58:52 +08:00
|
|
|
# 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
|
2009-11-04 05:07:43 +08:00
|
|
|
$(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:
|
2009-11-04 05:07:43 +08:00
|
|
|
rm -rf _build
|
2010-01-13 03:58:52 +08:00
|
|
|
rm -f ext/refcounting.pyc changes.rst
|