1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python/virtualenv/docs/Makefile Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,130 @@ 1.4 +# Makefile for Sphinx documentation 1.5 +# 1.6 + 1.7 +# You can set these variables from the command line. 1.8 +SPHINXOPTS = 1.9 +SPHINXBUILD = sphinx-build 1.10 +PAPER = 1.11 +BUILDDIR = _build 1.12 + 1.13 +# Internal variables. 1.14 +PAPEROPT_a4 = -D latex_paper_size=a4 1.15 +PAPEROPT_letter = -D latex_paper_size=letter 1.16 +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . 1.17 + 1.18 +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest 1.19 + 1.20 +help: 1.21 + @echo "Please use \`make <target>' where <target> is one of" 1.22 + @echo " html to make standalone HTML files" 1.23 + @echo " dirhtml to make HTML files named index.html in directories" 1.24 + @echo " singlehtml to make a single large HTML file" 1.25 + @echo " pickle to make pickle files" 1.26 + @echo " json to make JSON files" 1.27 + @echo " htmlhelp to make HTML files and a HTML help project" 1.28 + @echo " qthelp to make HTML files and a qthelp project" 1.29 + @echo " devhelp to make HTML files and a Devhelp project" 1.30 + @echo " epub to make an epub" 1.31 + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" 1.32 + @echo " latexpdf to make LaTeX files and run them through pdflatex" 1.33 + @echo " text to make text files" 1.34 + @echo " man to make manual pages" 1.35 + @echo " changes to make an overview of all changed/added/deprecated items" 1.36 + @echo " linkcheck to check all external links for integrity" 1.37 + @echo " doctest to run all doctests embedded in the documentation (if enabled)" 1.38 + 1.39 +clean: 1.40 + -rm -rf $(BUILDDIR)/* 1.41 + 1.42 +html: 1.43 + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html 1.44 + @echo 1.45 + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." 1.46 + 1.47 +dirhtml: 1.48 + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml 1.49 + @echo 1.50 + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." 1.51 + 1.52 +singlehtml: 1.53 + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml 1.54 + @echo 1.55 + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." 1.56 + 1.57 +pickle: 1.58 + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle 1.59 + @echo 1.60 + @echo "Build finished; now you can process the pickle files." 1.61 + 1.62 +json: 1.63 + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json 1.64 + @echo 1.65 + @echo "Build finished; now you can process the JSON files." 1.66 + 1.67 +htmlhelp: 1.68 + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp 1.69 + @echo 1.70 + @echo "Build finished; now you can run HTML Help Workshop with the" \ 1.71 + ".hhp project file in $(BUILDDIR)/htmlhelp." 1.72 + 1.73 +qthelp: 1.74 + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp 1.75 + @echo 1.76 + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ 1.77 + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" 1.78 + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/django-compressor.qhcp" 1.79 + @echo "To view the help file:" 1.80 + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/django-compressor.qhc" 1.81 + 1.82 +devhelp: 1.83 + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp 1.84 + @echo 1.85 + @echo "Build finished." 1.86 + @echo "To view the help file:" 1.87 + @echo "# mkdir -p $$HOME/.local/share/devhelp/django-compressor" 1.88 + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/django-compressor" 1.89 + @echo "# devhelp" 1.90 + 1.91 +epub: 1.92 + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub 1.93 + @echo 1.94 + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." 1.95 + 1.96 +latex: 1.97 + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex 1.98 + @echo 1.99 + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." 1.100 + @echo "Run \`make' in that directory to run these through (pdf)latex" \ 1.101 + "(use \`make latexpdf' here to do that automatically)." 1.102 + 1.103 +latexpdf: 1.104 + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex 1.105 + @echo "Running LaTeX files through pdflatex..." 1.106 + make -C $(BUILDDIR)/latex all-pdf 1.107 + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." 1.108 + 1.109 +text: 1.110 + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text 1.111 + @echo 1.112 + @echo "Build finished. The text files are in $(BUILDDIR)/text." 1.113 + 1.114 +man: 1.115 + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man 1.116 + @echo 1.117 + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." 1.118 + 1.119 +changes: 1.120 + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes 1.121 + @echo 1.122 + @echo "The overview file is in $(BUILDDIR)/changes." 1.123 + 1.124 +linkcheck: 1.125 + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck 1.126 + @echo 1.127 + @echo "Link check complete; look for any errors in the above output " \ 1.128 + "or in $(BUILDDIR)/linkcheck/output.txt." 1.129 + 1.130 +doctest: 1.131 + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest 1.132 + @echo "Testing of doctests in the sources finished, look at the " \ 1.133 + "results in $(BUILDDIR)/doctest/output.txt."