doplot is not needed anymore (due to the layers feature)
[PyX.git] / manual / Makefile
blobd8e7058fe8c4b3fc033d10e5543565df537d0a9e
1 # Makefile for Sphinx documentation
4 PYTHON ?= python
6 # You can set these variables from the command line.
7 SPHINXOPTS =
8 SPHINXBUILD = sphinx-build
9 PAPER =
10 BUILDDIR = _build
12 # Internal variables.
13 PAPEROPT_a4 = -D latex_paper_size=a4
14 PAPEROPT_letter = -D latex_paper_size=letter
15 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
17 .PHONY: help clean all html latexpdf figs
19 all: html latexpdf
20 @echo "Done."
22 clean:
23 -rm -rf $(BUILDDIR)/* *.pdf *.png
25 html: figs
26 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
27 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
29 latexpdf: figs
30 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
31 @echo "Running LaTeX files through pdflatex..."
32 make -C $(BUILDDIR)/latex all-pdf
33 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
35 figs: $(patsubst %.py, %.png, $(filter-out conf.py,$(wildcard *.py)))
37 %.png: %.py
38 export PYTHONPATH=$(CURDIR)/.. ; $(PYTHON) $^
39 $(PYTHON) ../contrib/epstopng.py -o $@ $*.pdf