Home | History | Annotate | Line # | Download | only in docs
      1  1.1  mrg # Makefile for Sphinx documentation
      2  1.1  mrg #
      3  1.1  mrg 
      4  1.1  mrg # You can set these variables from the command line.
      5  1.1  mrg SPHINXOPTS    =
      6  1.1  mrg SPHINXBUILD   = sphinx-build
      7  1.1  mrg PAPER         =
      8  1.1  mrg BUILDDIR      = build
      9  1.1  mrg 
     10  1.1  mrg # Internal variables.
     11  1.1  mrg PAPEROPT_a4     = -D latex_paper_size=a4
     12  1.1  mrg PAPEROPT_letter = -D latex_paper_size=letter
     13  1.1  mrg ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
     14  1.1  mrg 
     15  1.1  mrg .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
     16  1.1  mrg 
     17  1.1  mrg help:
     18  1.1  mrg 	@echo "Please use \`make <target>' where <target> is one of"
     19  1.1  mrg 	@echo "  html      to make standalone HTML files"
     20  1.1  mrg 	@echo "  dirhtml   to make HTML files named index.html in directories"
     21  1.1  mrg 	@echo "  pickle    to make pickle files"
     22  1.1  mrg 	@echo "  json      to make JSON files"
     23  1.1  mrg 	@echo "  htmlhelp  to make HTML files and a HTML help project"
     24  1.1  mrg 	@echo "  qthelp    to make HTML files and a qthelp project"
     25  1.1  mrg 	@echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
     26  1.1  mrg 	@echo "  changes   to make an overview of all changed/added/deprecated items"
     27  1.1  mrg 	@echo "  linkcheck to check all external links for integrity"
     28  1.1  mrg 	@echo "  doctest   to run all doctests embedded in the documentation (if enabled)"
     29  1.1  mrg 
     30  1.1  mrg clean:
     31  1.1  mrg 	-rm -rf $(BUILDDIR)/*
     32  1.1  mrg 
     33  1.1  mrg html:
     34  1.1  mrg 	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
     35  1.1  mrg 	@echo
     36  1.1  mrg 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
     37  1.1  mrg 
     38  1.1  mrg dirhtml:
     39  1.1  mrg 	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
     40  1.1  mrg 	@echo
     41  1.1  mrg 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
     42  1.1  mrg 
     43  1.1  mrg pickle:
     44  1.1  mrg 	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
     45  1.1  mrg 	@echo
     46  1.1  mrg 	@echo "Build finished; now you can process the pickle files."
     47  1.1  mrg 
     48  1.1  mrg json:
     49  1.1  mrg 	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
     50  1.1  mrg 	@echo
     51  1.1  mrg 	@echo "Build finished; now you can process the JSON files."
     52  1.1  mrg 
     53  1.1  mrg htmlhelp:
     54  1.1  mrg 	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
     55  1.1  mrg 	@echo
     56  1.1  mrg 	@echo "Build finished; now you can run HTML Help Workshop with the" \
     57  1.1  mrg 	      ".hhp project file in $(BUILDDIR)/htmlhelp."
     58  1.1  mrg 
     59  1.1  mrg qthelp:
     60  1.1  mrg 	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
     61  1.1  mrg 	@echo
     62  1.1  mrg 	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
     63  1.1  mrg 	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
     64  1.1  mrg 	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Gallium.qhcp"
     65  1.1  mrg 	@echo "To view the help file:"
     66  1.1  mrg 	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Gallium.qhc"
     67  1.1  mrg 
     68  1.1  mrg latex:
     69  1.1  mrg 	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
     70  1.1  mrg 	@echo
     71  1.1  mrg 	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
     72  1.1  mrg 	@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
     73  1.1  mrg 	      "run these through (pdf)latex."
     74  1.1  mrg 
     75  1.1  mrg changes:
     76  1.1  mrg 	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
     77  1.1  mrg 	@echo
     78  1.1  mrg 	@echo "The overview file is in $(BUILDDIR)/changes."
     79  1.1  mrg 
     80  1.1  mrg linkcheck:
     81  1.1  mrg 	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
     82  1.1  mrg 	@echo
     83  1.1  mrg 	@echo "Link check complete; look for any errors in the above output " \
     84  1.1  mrg 	      "or in $(BUILDDIR)/linkcheck/output.txt."
     85  1.1  mrg 
     86  1.1  mrg doctest:
     87  1.1  mrg 	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
     88  1.1  mrg 	@echo "Testing of doctests in the sources finished, look at the " \
     89  1.1  mrg 	      "results in $(BUILDDIR)/doctest/output.txt."
     90