~bzr/ubuntu/karmic/dulwich/bzr-ppa

« back to all changes in this revision

Viewing changes to docs/Makefile

  • Committer: Max Bowsher
  • Date: 2011-04-13 01:50:24 UTC
  • mfrom: (419.1.20 lucid)
  • Revision ID: maxb@f2s.com-20110413015024-ply0macbxppq7ag1
Tags: 0.7.1-1~bazaar1~karmic1
MergeĀ 0.7.1-1

Show diffs side-by-side

added added

removed removed

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