~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/Makefile

  • Committer: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
PAPEROPT_letter = -D latex_paper_size=letter
12
12
ALLSPHINXOPTS   = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
13
13
 
14
 
# Note that this assumes name of the output dir is same as name of the rule.
15
 
define make_output_dirs
16
 
# Create output directory (only needed for sphinx < 0.5)
17
 
[ -d _build ] || mkdir _build
18
 
[ -d "_build/$@" ] || mkdir "_build/$@"
19
 
# Workaround for a bug in sphinx < 0.5 where it tries to delete
20
 
# nonexistent static dirs and does not catch the exception.  This was
21
 
# fixed in svn+ssh://pythondev@svn.python.org/doctools/branches/0.4.x
22
 
# at r65551 and merged as 280b62246342 in hg branch released as 0.5.
23
 
[ -d "_build/$@/_static" ] || mkdir "_build/$@/_static"
24
 
for fn in _static/*; do \
25
 
    [ ! -d "$$fn" ] && continue; \
26
 
    [ -d "_build/$@/$$fn" ] || mkdir "_build/$@/$$fn"; \
27
 
done
28
 
endef
29
 
 
30
14
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
31
15
 
32
16
help:
46
30
        -rm -rf _build/*
47
31
 
48
32
html:
49
 
        $(make_output_dirs)
50
33
        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
51
34
        @echo
52
35
        @echo "Build finished. The HTML pages are in _build/html."
53
36
 
54
37
dirhtml:
55
 
        $(make_output_dirs)
56
38
        $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) _build/dirhtml
57
39
        @echo
58
40
        @echo "Build finished. The HTML pages are in _build/dirhtml."
59
41
 
60
42
pickle:
61
 
        $(make_output_dirs)
62
43
        $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
63
44
        @echo
64
45
        @echo "Build finished; now you can process the pickle files."
65
46
 
66
47
json:
67
 
        $(make_output_dirs)
68
48
        $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
69
49
        @echo
70
50
        @echo "Build finished; now you can process the JSON files."
71
51
 
72
52
htmlhelp:
73
 
        $(make_output_dirs)
74
53
        $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
75
54
        @echo
76
55
        @echo "Build finished; now you can run HTML Help Workshop with the" \
77
56
              ".hhp project file in _build/htmlhelp."
78
57
 
79
58
qthelp:
80
 
        $(make_output_dirs)
81
59
        $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) _build/qthelp
82
60
        @echo
83
61
        @echo "Build finished; now you can run "qcollectiongenerator" with the" \
87
65
        @echo "# assistant -collectionFile _build/qthelp/Bazaar.qhc"
88
66
 
89
67
latex:
90
 
        $(make_output_dirs)
91
68
        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
92
69
        @echo
93
70
        @echo "Build finished; the LaTeX files are in _build/latex."
95
72
              "run these through (pdf)latex."
96
73
 
97
74
changes:
98
 
        $(make_output_dirs)
99
75
        $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
100
76
        @echo
101
77
        @echo "The overview file is in _build/changes."
102
78
 
103
79
linkcheck:
104
 
        $(make_output_dirs)
105
80
        $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
106
81
        @echo
107
82
        @echo "Link check complete; look for any errors in the above output " \
108
83
              "or in _build/linkcheck/output.txt."
109
84
 
110
85
doctest:
111
 
        $(make_output_dirs)
112
86
        $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest
113
87
        @echo "Testing of doctests in the sources finished, look at the " \
114
88
              "results in _build/doctest/output.txt."
115
 
 
116
 
texinfo:
117
 
        $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) _build/texinfo
118