| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
SPHINXOPTS = |
| 21 |
SPHINXBUILD = sphinx-build |
| 22 |
PAPER = |
| 23 |
BUILDDIR = _build |
| 24 |
|
| 25 |
PAPEROPT_a4 = -D latex_paper_size=a4 |
| 26 |
PAPEROPT_letter = -D latex_paper_size=letter |
| 27 |
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . |
| 28 |
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . |
| 29 |
|
| 30 |
.PHONY: help clean latex latexpdf |
| 31 |
|
| 32 |
help: |
| 33 |
@echo "Please use \`make <target>' where <target> is one of" |
| 34 |
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" |
| 35 |
@echo " latexpdf to make LaTeX files and run them through pdflatex" |
| 36 |
|
| 37 |
clean: |
| 38 |
-rm -rf $(BUILDDIR) |
| 39 |
|
| 40 |
latex: |
| 41 |
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex |
| 42 |
@echo |
| 43 |
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." |
| 44 |
@echo "Run \`make' in that directory to run these through (pdf)latex" \ |
| 45 |
"(use \`make latexpdf' here to do that automatically)." |
| 46 |
|
| 47 |
latexpdf: |
| 48 |
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex |
| 49 |
@echo "Running LaTeX files through pdflatex..." |
| 50 |
$(MAKE) -C $(BUILDDIR)/latex all-pdf |
| 51 |
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." |