Skip to content

Commit 23ad9d2

Browse files
committed
latest Makefile
git-svn-id: http://pandas.googlecode.com/svn/trunk@93 d5231056-7de3-11de-ac95-d976489f1ece
1 parent 023905d commit 23ad9d2

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

doc/Makefile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
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.
58
SPHINXOPTS =
69
SPHINXBUILD = sphinx-build
710
PAPER =
811

12+
NEED_AUTOSUMMARY = $(shell $(PYTHON) -c 'import sphinx; print sphinx.__version__ < "0.7" and "1" or ""')
13+
914
# Internal variables.
1015
PAPEROPT_a4 = -D latex_paper_size=a4
1116
PAPEROPT_letter = -D latex_paper_size=letter
@@ -27,7 +32,18 @@ help:
2732
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
2833

2934
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
3147

3248
html:
3349
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html

doc/build.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)