internal files should be opened as bytes as well
[PyX.git] / faq / Makefile
blob332d9bfa67db9f1242915088003af7b56d0cef5f
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
19 all: html latexpdf
20 @echo "Done."
22 clean:
23 -rm -rf $(BUILDDIR)/* *.eps *.pdf *.png
25 html:
26 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
27 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
29 latexpdf:
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."