~ubuntu-branches/ubuntu/saucy/keystone/saucy-proposed

« back to all changes in this revision

Viewing changes to doc/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-08-23 10:18:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110823101822-enve6zceb3lqhuvj
Tags: upstream-1.0~d4~20110823.1078
ImportĀ upstreamĀ versionĀ 1.0~d4~20110823.1078

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