EXTRA_DIST = CHANGES LICENSE README.rst
SUBDIRS = doc src test
-distcheck-hook:
- sphinx-build -b html -W \
- $(distdir)/doc \
- $(distdir)/_build/doc/.build/html
+check-local: html
To generate HTML documentation yourself, invoke::
- cd doc/
- sphinx-build . .build/html
+ make html
-... and point your browser to ``.build/html/index.html``. Sphinx_ is
+and point your browser to ``doc/_build/html/index.html``. Sphinx_ is
required to generate the documentation.
conf.py apiref.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
To build the documentation, invoke
- sphinx-build . .build/html
+ make html
-in this directory. Then point your browser to .build/html/index.html.
+Then point your browser to _build/html/index.html.
# List of directories, relative to source directory, that shouldn't be searched
# for source files.
-exclude_trees = ['.build']
+exclude_trees = ['_build']
# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
reStructuredText_ with Sphinx_ annotations. To generate the HTML
documentation, invoke::
- cd doc/
- sphinx-build . .build/html
+ make html
-... and point your browser to ``.build/html/index.html``. Sphinx_ is
+and point your browser to ``doc/_build/html/index.html``. Sphinx_ is
required to generate the documentation.
.. _reStructuredText: http://docutils.sourceforge.net/rst.html