Browse files

DOC: Makefile: add FILES option for partial rebuilds

  • Loading branch information...
pv committed Aug 31, 2010
1 parent 5bb8e5e commit e6347c910c13107fb971450e4ac471150d724b12
Showing with 9 additions and 7 deletions.
  1. +9 −7 doc/Makefile
@@ -9,6 +9,8 @@ SPHINXOPTS =
SPHINXBUILD = LANG=C sphinx-build
NEED_AUTOSUMMARY = $(shell $(PYTHON) -c 'import sphinx; print sphinx.__version__ < "0.7" and "1" or ""')
# Internal variables.
@@ -108,14 +110,14 @@ endif
html: generate
mkdir -p build/html build/doctrees
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html $(FILES)
$(PYTHON) html build/html/*.html
@echo "Build finished. The HTML pages are in build/html."
pickle: generate
mkdir -p build/pickle build/doctrees
- $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle $(FILES)
@echo "Build finished; now you can process the pickle files or run"
@echo " sphinx-web build/pickle"
@@ -125,7 +127,7 @@ web: pickle
htmlhelp: generate
mkdir -p build/htmlhelp build/doctrees
- $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp $(FILES)
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in build/htmlhelp."
@@ -136,7 +138,7 @@ htmlhelp-build: htmlhelp build/htmlhelp/scipy.chm
latex: generate
mkdir -p build/latex build/doctrees
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex $(FILES)
$(PYTHON) tex build/latex/*.tex
perl -pi -e 's/\t(latex.*|pdflatex) (.*)/\t-$$1 -interaction batchmode $$2/' build/latex/Makefile
@@ -146,18 +148,18 @@ latex: generate
coverage: build
mkdir -p build/coverage build/doctrees
- $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) build/coverage
+ $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) build/coverage $(FILES)
@echo "Coverage finished; see c.txt and python.txt in build/coverage"
changes: generate
mkdir -p build/changes build/doctrees
- $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes $(FILES)
@echo "The overview file is in build/changes."
linkcheck: generate
mkdir -p build/linkcheck build/doctrees
- $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck $(FILES)
@echo "Link check complete; look for any errors in the above output " \
"or in build/linkcheck/output.txt."

0 comments on commit e6347c9

Please sign in to comment.