File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 11# Makefile for Sphinx documentation
22#
33
4+ PYVER = 2.5
5+ PYTHON = python$(PYVER )
6+
47# You can set these variables from the command line.
58SPHINXOPTS =
69SPHINXBUILD = sphinx-build
710PAPER =
811
12+ NEED_AUTOSUMMARY = $(shell $(PYTHON ) -c 'import sphinx; print sphinx.__version__ < "0.7" and "1" or ""')
13+
914# Internal variables.
1015PAPEROPT_a4 = -D latex_paper_size=a4
1116PAPEROPT_letter = -D latex_paper_size=letter
2732 @echo " doctest to run all doctests embedded in the documentation (if enabled)"
2833
2934clean :
30- -rm -rf build/*
35+ -rm -rf build/* source/generated
36+
37+
38+ generate : build/generate-stamp
39+ build/generate-stamp : $(wildcard source/* .rst)
40+ mkdir -p build
41+ ifeq ($(NEED_AUTOSUMMARY ) ,1)
42+ $(PYTHON) \
43+ ./sphinxext/autosummary_generate.py source/*.rst \
44+ -p dump.xml -o source/generated
45+ endif
46+ touch build/generate-stamp
3147
3248html :
3349 $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) build/html
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments