1*9880d681SAndroid Build Coastguard Worker# Makefile for Sphinx documentation 2*9880d681SAndroid Build Coastguard Worker# 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker# You can set these variables from the command line. 5*9880d681SAndroid Build Coastguard WorkerSPHINXOPTS = 6*9880d681SAndroid Build Coastguard WorkerSPHINXBUILD = sphinx-build 7*9880d681SAndroid Build Coastguard WorkerPAPER = 8*9880d681SAndroid Build Coastguard WorkerBUILDDIR = _build 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker# Internal variables. 11*9880d681SAndroid Build Coastguard WorkerPAPEROPT_a4 = -D latex_paper_size=a4 12*9880d681SAndroid Build Coastguard WorkerPAPEROPT_letter = -D latex_paper_size=letter 13*9880d681SAndroid Build Coastguard WorkerALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . 14*9880d681SAndroid Build Coastguard Worker# the i18n builder cannot share the environment and doctrees with the others 15*9880d681SAndroid Build Coastguard WorkerI18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Worker.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Workerall: html 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerhelp: 22*9880d681SAndroid Build Coastguard Worker @echo "Please use \`make <target>' where <target> is one of" 23*9880d681SAndroid Build Coastguard Worker @echo " html to make standalone HTML files" 24*9880d681SAndroid Build Coastguard Worker @echo " dirhtml to make HTML files named index.html in directories" 25*9880d681SAndroid Build Coastguard Worker @echo " singlehtml to make a single large HTML file" 26*9880d681SAndroid Build Coastguard Worker @echo " pickle to make pickle files" 27*9880d681SAndroid Build Coastguard Worker @echo " json to make JSON files" 28*9880d681SAndroid Build Coastguard Worker @echo " htmlhelp to make HTML files and a HTML help project" 29*9880d681SAndroid Build Coastguard Worker @echo " qthelp to make HTML files and a qthelp project" 30*9880d681SAndroid Build Coastguard Worker @echo " devhelp to make HTML files and a Devhelp project" 31*9880d681SAndroid Build Coastguard Worker @echo " epub to make an epub" 32*9880d681SAndroid Build Coastguard Worker @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" 33*9880d681SAndroid Build Coastguard Worker @echo " latexpdf to make LaTeX files and run them through pdflatex" 34*9880d681SAndroid Build Coastguard Worker @echo " text to make text files" 35*9880d681SAndroid Build Coastguard Worker @echo " man to make manual pages" 36*9880d681SAndroid Build Coastguard Worker @echo " texinfo to make Texinfo files" 37*9880d681SAndroid Build Coastguard Worker @echo " info to make Texinfo files and run them through makeinfo" 38*9880d681SAndroid Build Coastguard Worker @echo " gettext to make PO message catalogs" 39*9880d681SAndroid Build Coastguard Worker @echo " changes to make an overview of all changed/added/deprecated items" 40*9880d681SAndroid Build Coastguard Worker @echo " linkcheck to check all external links for integrity" 41*9880d681SAndroid Build Coastguard Worker @echo " doctest to run all doctests embedded in the documentation (if enabled)" 42*9880d681SAndroid Build Coastguard Worker 43*9880d681SAndroid Build Coastguard Workerclean: 44*9880d681SAndroid Build Coastguard Worker -rm -rf $(BUILDDIR)/* 45*9880d681SAndroid Build Coastguard Worker 46*9880d681SAndroid Build Coastguard Workerhtml: 47*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html 48*9880d681SAndroid Build Coastguard Worker @echo 49*9880d681SAndroid Build Coastguard Worker @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." 50*9880d681SAndroid Build Coastguard Worker 51*9880d681SAndroid Build Coastguard Workerdirhtml: 52*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml 53*9880d681SAndroid Build Coastguard Worker @echo 54*9880d681SAndroid Build Coastguard Worker @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." 55*9880d681SAndroid Build Coastguard Worker 56*9880d681SAndroid Build Coastguard Workersinglehtml: 57*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml 58*9880d681SAndroid Build Coastguard Worker @echo 59*9880d681SAndroid Build Coastguard Worker @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." 60*9880d681SAndroid Build Coastguard Worker 61*9880d681SAndroid Build Coastguard Workerpickle: 62*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle 63*9880d681SAndroid Build Coastguard Worker @echo 64*9880d681SAndroid Build Coastguard Worker @echo "Build finished; now you can process the pickle files." 65*9880d681SAndroid Build Coastguard Worker 66*9880d681SAndroid Build Coastguard Workerjson: 67*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json 68*9880d681SAndroid Build Coastguard Worker @echo 69*9880d681SAndroid Build Coastguard Worker @echo "Build finished; now you can process the JSON files." 70*9880d681SAndroid Build Coastguard Worker 71*9880d681SAndroid Build Coastguard Workerhtmlhelp: 72*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp 73*9880d681SAndroid Build Coastguard Worker @echo 74*9880d681SAndroid Build Coastguard Worker @echo "Build finished; now you can run HTML Help Workshop with the" \ 75*9880d681SAndroid Build Coastguard Worker ".hhp project file in $(BUILDDIR)/htmlhelp." 76*9880d681SAndroid Build Coastguard Worker 77*9880d681SAndroid Build Coastguard Workerqthelp: 78*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp 79*9880d681SAndroid Build Coastguard Worker @echo 80*9880d681SAndroid Build Coastguard Worker @echo "Build finished; now you can run "qcollectiongenerator" with the" \ 81*9880d681SAndroid Build Coastguard Worker ".qhcp project file in $(BUILDDIR)/qthelp, like this:" 82*9880d681SAndroid Build Coastguard Worker @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/llvm.qhcp" 83*9880d681SAndroid Build Coastguard Worker @echo "To view the help file:" 84*9880d681SAndroid Build Coastguard Worker @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/llvm.qhc" 85*9880d681SAndroid Build Coastguard Worker 86*9880d681SAndroid Build Coastguard Workerdevhelp: 87*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp 88*9880d681SAndroid Build Coastguard Worker @echo 89*9880d681SAndroid Build Coastguard Worker @echo "Build finished." 90*9880d681SAndroid Build Coastguard Worker @echo "To view the help file:" 91*9880d681SAndroid Build Coastguard Worker @echo "# mkdir -p $$HOME/.local/share/devhelp/llvm" 92*9880d681SAndroid Build Coastguard Worker @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/llvm" 93*9880d681SAndroid Build Coastguard Worker @echo "# devhelp" 94*9880d681SAndroid Build Coastguard Worker 95*9880d681SAndroid Build Coastguard Workerepub: 96*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub 97*9880d681SAndroid Build Coastguard Worker @echo 98*9880d681SAndroid Build Coastguard Worker @echo "Build finished. The epub file is in $(BUILDDIR)/epub." 99*9880d681SAndroid Build Coastguard Worker 100*9880d681SAndroid Build Coastguard Workerlatex: 101*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex 102*9880d681SAndroid Build Coastguard Worker @echo 103*9880d681SAndroid Build Coastguard Worker @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." 104*9880d681SAndroid Build Coastguard Worker @echo "Run \`make' in that directory to run these through (pdf)latex" \ 105*9880d681SAndroid Build Coastguard Worker "(use \`make latexpdf' here to do that automatically)." 106*9880d681SAndroid Build Coastguard Worker 107*9880d681SAndroid Build Coastguard Workerlatexpdf: 108*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex 109*9880d681SAndroid Build Coastguard Worker @echo "Running LaTeX files through pdflatex..." 110*9880d681SAndroid Build Coastguard Worker $(MAKE) -C $(BUILDDIR)/latex all-pdf 111*9880d681SAndroid Build Coastguard Worker @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." 112*9880d681SAndroid Build Coastguard Worker 113*9880d681SAndroid Build Coastguard Workertext: 114*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text 115*9880d681SAndroid Build Coastguard Worker @echo 116*9880d681SAndroid Build Coastguard Worker @echo "Build finished. The text files are in $(BUILDDIR)/text." 117*9880d681SAndroid Build Coastguard Worker 118*9880d681SAndroid Build Coastguard Workerman: 119*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man 120*9880d681SAndroid Build Coastguard Worker @echo 121*9880d681SAndroid Build Coastguard Worker @echo "Build finished. The manual pages are in $(BUILDDIR)/man." 122*9880d681SAndroid Build Coastguard Worker 123*9880d681SAndroid Build Coastguard Workertexinfo: 124*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo 125*9880d681SAndroid Build Coastguard Worker @echo 126*9880d681SAndroid Build Coastguard Worker @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." 127*9880d681SAndroid Build Coastguard Worker @echo "Run \`make' in that directory to run these through makeinfo" \ 128*9880d681SAndroid Build Coastguard Worker "(use \`make info' here to do that automatically)." 129*9880d681SAndroid Build Coastguard Worker 130*9880d681SAndroid Build Coastguard Workerinfo: 131*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo 132*9880d681SAndroid Build Coastguard Worker @echo "Running Texinfo files through makeinfo..." 133*9880d681SAndroid Build Coastguard Worker make -C $(BUILDDIR)/texinfo info 134*9880d681SAndroid Build Coastguard Worker @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." 135*9880d681SAndroid Build Coastguard Worker 136*9880d681SAndroid Build Coastguard Workergettext: 137*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale 138*9880d681SAndroid Build Coastguard Worker @echo 139*9880d681SAndroid Build Coastguard Worker @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." 140*9880d681SAndroid Build Coastguard Worker 141*9880d681SAndroid Build Coastguard Workerchanges: 142*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes 143*9880d681SAndroid Build Coastguard Worker @echo 144*9880d681SAndroid Build Coastguard Worker @echo "The overview file is in $(BUILDDIR)/changes." 145*9880d681SAndroid Build Coastguard Worker 146*9880d681SAndroid Build Coastguard Workerlinkcheck: 147*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck 148*9880d681SAndroid Build Coastguard Worker @echo 149*9880d681SAndroid Build Coastguard Worker @echo "Link check complete; look for any errors in the above output " \ 150*9880d681SAndroid Build Coastguard Worker "or in $(BUILDDIR)/linkcheck/output.txt." 151*9880d681SAndroid Build Coastguard Worker 152*9880d681SAndroid Build Coastguard Workerdoctest: 153*9880d681SAndroid Build Coastguard Worker $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest 154*9880d681SAndroid Build Coastguard Worker @echo "Testing of doctests in the sources finished, look at the " \ 155*9880d681SAndroid Build Coastguard Worker "results in $(BUILDDIR)/doctest/output.txt." 156