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 1
1
# Makefile for Sphinx documentation
2
2
#
3
3
4
+ PYVER = 2.5
5
+ PYTHON = python$(PYVER )
6
+
4
7
# You can set these variables from the command line.
5
8
SPHINXOPTS =
6
9
SPHINXBUILD = sphinx-build
7
10
PAPER =
8
11
12
+ NEED_AUTOSUMMARY = $(shell $(PYTHON ) -c 'import sphinx; print sphinx.__version__ < "0.7" and "1" or ""')
13
+
9
14
# Internal variables.
10
15
PAPEROPT_a4 = -D latex_paper_size=a4
11
16
PAPEROPT_letter = -D latex_paper_size=letter
27
32
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
28
33
29
34
clean :
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
31
47
32
48
html :
33
49
$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) build/html
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments