fix pdf output when using fonts directly with kerning and/or inter-character spacing
[PyX.git] / faq / Makefile
blobdb029b291e13e2e187adb5b621d1e4fd46fac579
1 # Makefile for Sphinx documentation
4 PYTHON ?= python3
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."