Mercurial > cpython-lru_cache-weakref
annotate Doc/Makefile @ 58765:2ba7677bfa95 legacy-trunk
testCopysign was defined twice in test_math; combine the definitions
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sat, 06 Feb 2010 23:11:25 +0000 |
| parents | 7361ee2ddfdb |
| children | 9ebbcb7a3989 |
| rev | line source |
|---|---|
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
1 # |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
2 # Makefile for Python documentation |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
3 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
4 # |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
5 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
6 # You can set these variables from the command line. |
|
42608
3cc2cc795765
Don't use "?=" which seems to be a GNUism.
Georg Brandl <georg@python.org>
parents:
42604
diff
changeset
|
7 PYTHON = python |
|
3cc2cc795765
Don't use "?=" which seems to be a GNUism.
Georg Brandl <georg@python.org>
parents:
42604
diff
changeset
|
8 SVNROOT = http://svn.python.org/projects |
|
3cc2cc795765
Don't use "?=" which seems to be a GNUism.
Georg Brandl <georg@python.org>
parents:
42604
diff
changeset
|
9 SPHINXOPTS = |
|
44323
e97f105d1c83
Adapt conf.py to new option names.
Georg Brandl <georg@python.org>
parents:
44103
diff
changeset
|
10 PAPER = |
|
46002
24083305d1c7
Allow giving source names on the cmdline.
Georg Brandl <georg@python.org>
parents:
46001
diff
changeset
|
11 SOURCES = |
|
50305
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
12 DISTVERSION = $(shell $(PYTHON) tools/sphinxext/patchlevel.py) |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
13 |
|
44323
e97f105d1c83
Adapt conf.py to new option names.
Georg Brandl <georg@python.org>
parents:
44103
diff
changeset
|
14 ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees -D latex_paper_size=$(PAPER) \ |
|
46002
24083305d1c7
Allow giving source names on the cmdline.
Georg Brandl <georg@python.org>
parents:
46001
diff
changeset
|
15 $(SPHINXOPTS) . build/$(BUILDER) $(SOURCES) |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
16 |
|
50505
c75720c3e16e
Add rstlint, a little tool to find subtle markup problems and inconsistencies in the Doc sources.
Georg Brandl <georg@python.org>
parents:
50305
diff
changeset
|
17 .PHONY: help checkout update build html htmlhelp clean coverage dist check |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
18 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
19 help: |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
20 @echo "Please use \`make <target>' where <target> is one of" |
|
45087
99ef248fb315
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl <georg@python.org>
parents:
44383
diff
changeset
|
21 @echo " html to make standalone HTML files" |
|
99ef248fb315
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl <georg@python.org>
parents:
44383
diff
changeset
|
22 @echo " htmlhelp to make HTML files and a HTML help project" |
|
99ef248fb315
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl <georg@python.org>
parents:
44383
diff
changeset
|
23 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" |
|
47420
e8797e6e07a7
Add plain text make target.
Georg Brandl <georg@python.org>
parents:
46436
diff
changeset
|
24 @echo " text to make plain text files" |
|
45087
99ef248fb315
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl <georg@python.org>
parents:
44383
diff
changeset
|
25 @echo " changes to make an overview over all changed/added/deprecated items" |
|
99ef248fb315
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl <georg@python.org>
parents:
44383
diff
changeset
|
26 @echo " linkcheck to check all external links for integrity" |
|
50578
d41a86875332
Add "suspicious" builder which finds leftover markup in the HTML files.
Georg Brandl <georg@python.org>
parents:
50510
diff
changeset
|
27 @echo " suspicious to check for suspicious markup in output text" |
|
45472
6ba5308f7ba4
Documentation coverage builder, part 1.
Georg Brandl <georg@python.org>
parents:
45091
diff
changeset
|
28 @echo " coverage to check documentation coverage for library and C API" |
| 49254 | 29 @echo " dist to create a \"dist\" directory with archived docs for download" |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
30 |
|
53461
64110c0ad530
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
Georg Brandl <georg@python.org>
parents:
53460
diff
changeset
|
31 # Note: if you update versions here, do the same in make.bat and README.txt |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
32 checkout: |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
33 @if [ ! -d tools/sphinx ]; then \ |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
34 echo "Checking out Sphinx..."; \ |
| 57226 | 35 svn checkout $(SVNROOT)/external/Sphinx-0.6.3/sphinx tools/sphinx; \ |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
36 fi |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
37 @if [ ! -d tools/docutils ]; then \ |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
38 echo "Checking out Docutils..."; \ |
|
47831
8c929ce0fb41
Use newer versions of externals.
Georg Brandl <georg@python.org>
parents:
47431
diff
changeset
|
39 svn checkout $(SVNROOT)/external/docutils-0.5/docutils tools/docutils; \ |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
40 fi |
| 50605 | 41 @if [ ! -d tools/jinja2 ]; then \ |
|
46436
03d9c664a7bc
Check out Jinja as a separate step now that it's not included in the Sphinx package anymore.
Georg Brandl <georg@python.org>
parents:
46002
diff
changeset
|
42 echo "Checking out Jinja..."; \ |
| 50605 | 43 svn checkout $(SVNROOT)/external/Jinja-2.1.1/jinja2 tools/jinja2; \ |
|
46436
03d9c664a7bc
Check out Jinja as a separate step now that it's not included in the Sphinx package anymore.
Georg Brandl <georg@python.org>
parents:
46002
diff
changeset
|
44 fi |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
45 @if [ ! -d tools/pygments ]; then \ |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
46 echo "Checking out Pygments..."; \ |
|
58005
ad609d0f5150
Use new Pygments version.
Georg Brandl <georg@python.org>
parents:
57226
diff
changeset
|
47 svn checkout $(SVNROOT)/external/Pygments-1.1.1/pygments tools/pygments; \ |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
48 fi |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
49 |
|
58012
7361ee2ddfdb
#7602: improve "clean" and "checkout" targets now that all tools are in externals.
Georg Brandl <georg@python.org>
parents:
58005
diff
changeset
|
50 update: clean checkout |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
51 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
52 build: checkout |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
53 mkdir -p build/$(BUILDER) build/doctrees |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
54 $(PYTHON) tools/sphinx-build.py $(ALLSPHINXOPTS) |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
55 @echo |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
56 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
57 html: BUILDER = html |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
58 html: build |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
59 @echo "Build finished. The HTML pages are in build/html." |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
60 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
61 htmlhelp: BUILDER = htmlhelp |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
62 htmlhelp: build |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
63 @echo "Build finished; now you can run HTML Help Workshop with the" \ |
|
42609
d3362c495296
Fix a wrong path in the Makefile.
Georg Brandl <georg@python.org>
parents:
42608
diff
changeset
|
64 "build/htmlhelp/pydoc.hhp project file." |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
65 |
|
44103
1e266015cf5b
Add more entries to the glossary.
Georg Brandl <georg@python.org>
parents:
43647
diff
changeset
|
66 latex: BUILDER = latex |
|
1e266015cf5b
Add more entries to the glossary.
Georg Brandl <georg@python.org>
parents:
43647
diff
changeset
|
67 latex: build |
|
1e266015cf5b
Add more entries to the glossary.
Georg Brandl <georg@python.org>
parents:
43647
diff
changeset
|
68 @echo "Build finished; the LaTeX files are in build/latex." |
|
44323
e97f105d1c83
Adapt conf.py to new option names.
Georg Brandl <georg@python.org>
parents:
44103
diff
changeset
|
69 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ |
|
e97f105d1c83
Adapt conf.py to new option names.
Georg Brandl <georg@python.org>
parents:
44103
diff
changeset
|
70 "run these through (pdf)latex." |
|
44103
1e266015cf5b
Add more entries to the glossary.
Georg Brandl <georg@python.org>
parents:
43647
diff
changeset
|
71 |
|
47420
e8797e6e07a7
Add plain text make target.
Georg Brandl <georg@python.org>
parents:
46436
diff
changeset
|
72 text: BUILDER = text |
|
e8797e6e07a7
Add plain text make target.
Georg Brandl <georg@python.org>
parents:
46436
diff
changeset
|
73 text: build |
|
e8797e6e07a7
Add plain text make target.
Georg Brandl <georg@python.org>
parents:
46436
diff
changeset
|
74 @echo "Build finished; the text files are in build/text." |
|
e8797e6e07a7
Add plain text make target.
Georg Brandl <georg@python.org>
parents:
46436
diff
changeset
|
75 |
|
44383
3625234bf3d2
Some cleanup in the docs.
Georg Brandl <georg@python.org>
parents:
44323
diff
changeset
|
76 changes: BUILDER = changes |
|
3625234bf3d2
Some cleanup in the docs.
Georg Brandl <georg@python.org>
parents:
44323
diff
changeset
|
77 changes: build |
|
3625234bf3d2
Some cleanup in the docs.
Georg Brandl <georg@python.org>
parents:
44323
diff
changeset
|
78 @echo "The overview file is in build/changes." |
|
3625234bf3d2
Some cleanup in the docs.
Georg Brandl <georg@python.org>
parents:
44323
diff
changeset
|
79 |
|
45087
99ef248fb315
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl <georg@python.org>
parents:
44383
diff
changeset
|
80 linkcheck: BUILDER = linkcheck |
|
99ef248fb315
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl <georg@python.org>
parents:
44383
diff
changeset
|
81 linkcheck: build |
|
45472
6ba5308f7ba4
Documentation coverage builder, part 1.
Georg Brandl <georg@python.org>
parents:
45091
diff
changeset
|
82 @echo "Link check complete; look for any errors in the above output " \ |
| 45091 | 83 "or in build/$(BUILDER)/output.txt" |
|
45087
99ef248fb315
Add link checker builder, written for GHOP by Thomas Lamb.
Georg Brandl <georg@python.org>
parents:
44383
diff
changeset
|
84 |
|
50578
d41a86875332
Add "suspicious" builder which finds leftover markup in the HTML files.
Georg Brandl <georg@python.org>
parents:
50510
diff
changeset
|
85 suspicious: BUILDER = suspicious |
|
d41a86875332
Add "suspicious" builder which finds leftover markup in the HTML files.
Georg Brandl <georg@python.org>
parents:
50510
diff
changeset
|
86 suspicious: build |
|
d41a86875332
Add "suspicious" builder which finds leftover markup in the HTML files.
Georg Brandl <georg@python.org>
parents:
50510
diff
changeset
|
87 @echo "Suspicious check complete; look for any errors in the above output " \ |
|
d41a86875332
Add "suspicious" builder which finds leftover markup in the HTML files.
Georg Brandl <georg@python.org>
parents:
50510
diff
changeset
|
88 "or in build/$(BUILDER)/suspicious.txt" |
|
d41a86875332
Add "suspicious" builder which finds leftover markup in the HTML files.
Georg Brandl <georg@python.org>
parents:
50510
diff
changeset
|
89 |
|
45472
6ba5308f7ba4
Documentation coverage builder, part 1.
Georg Brandl <georg@python.org>
parents:
45091
diff
changeset
|
90 coverage: BUILDER = coverage |
|
6ba5308f7ba4
Documentation coverage builder, part 1.
Georg Brandl <georg@python.org>
parents:
45091
diff
changeset
|
91 coverage: build |
|
6ba5308f7ba4
Documentation coverage builder, part 1.
Georg Brandl <georg@python.org>
parents:
45091
diff
changeset
|
92 @echo "Coverage finished; see c.txt and python.txt in build/coverage" |
|
6ba5308f7ba4
Documentation coverage builder, part 1.
Georg Brandl <georg@python.org>
parents:
45091
diff
changeset
|
93 |
|
46001
a99ca1e575ed
Activate the Sphinx doctest extension and convert howto/functional to use it.
Georg Brandl <georg@python.org>
parents:
45472
diff
changeset
|
94 doctest: BUILDER = doctest |
|
a99ca1e575ed
Activate the Sphinx doctest extension and convert howto/functional to use it.
Georg Brandl <georg@python.org>
parents:
45472
diff
changeset
|
95 doctest: build |
|
a99ca1e575ed
Activate the Sphinx doctest extension and convert howto/functional to use it.
Georg Brandl <georg@python.org>
parents:
45472
diff
changeset
|
96 @echo "Testing of doctests in the sources finished, look at the " \ |
|
a99ca1e575ed
Activate the Sphinx doctest extension and convert howto/functional to use it.
Georg Brandl <georg@python.org>
parents:
45472
diff
changeset
|
97 "results in build/doctest/output.txt" |
|
a99ca1e575ed
Activate the Sphinx doctest extension and convert howto/functional to use it.
Georg Brandl <georg@python.org>
parents:
45472
diff
changeset
|
98 |
|
47431
c0d616f0ad86
Generate pydoc's topic help from the reST docs via Sphinx'
Georg Brandl <georg@python.org>
parents:
47420
diff
changeset
|
99 pydoc-topics: BUILDER = pydoc-topics |
|
c0d616f0ad86
Generate pydoc's topic help from the reST docs via Sphinx'
Georg Brandl <georg@python.org>
parents:
47420
diff
changeset
|
100 pydoc-topics: build |
|
53461
64110c0ad530
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
Georg Brandl <georg@python.org>
parents:
53460
diff
changeset
|
101 @echo "Building finished; now copy build/pydoc-topics/topics.py " \ |
|
64110c0ad530
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
Georg Brandl <georg@python.org>
parents:
53460
diff
changeset
|
102 "to Lib/pydoc_data/topics.py" |
|
47431
c0d616f0ad86
Generate pydoc's topic help from the reST docs via Sphinx'
Georg Brandl <georg@python.org>
parents:
47420
diff
changeset
|
103 |
|
47832
723c0ff698b7
add a htmlview directive
Benjamin Peterson <benjamin@python.org>
parents:
47831
diff
changeset
|
104 htmlview: html |
|
723c0ff698b7
add a htmlview directive
Benjamin Peterson <benjamin@python.org>
parents:
47831
diff
changeset
|
105 $(PYTHON) -c "import webbrowser; webbrowser.open('build/html/index.html')" |
| 49254 | 106 |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
107 clean: |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
108 -rm -rf build/* |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
109 -rm -rf tools/sphinx |
|
58012
7361ee2ddfdb
#7602: improve "clean" and "checkout" targets now that all tools are in externals.
Georg Brandl <georg@python.org>
parents:
58005
diff
changeset
|
110 -rm -rf tools/pygments |
|
7361ee2ddfdb
#7602: improve "clean" and "checkout" targets now that all tools are in externals.
Georg Brandl <georg@python.org>
parents:
58005
diff
changeset
|
111 -rm -rf tools/jinja2 |
|
7361ee2ddfdb
#7602: improve "clean" and "checkout" targets now that all tools are in externals.
Georg Brandl <georg@python.org>
parents:
58005
diff
changeset
|
112 -rm -rf tools/docutils |
| 49254 | 113 |
| 114 dist: | |
| 115 -rm -rf dist | |
| 116 mkdir -p dist | |
| 117 | |
| 118 # archive the HTML | |
| 119 make html | |
|
50305
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
120 cp -pPR build/html dist/python-$(DISTVERSION)-docs-html |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
121 tar -C dist -cf dist/python-$(DISTVERSION)-docs-html.tar python-$(DISTVERSION)-docs-html |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
122 bzip2 -9 -k dist/python-$(DISTVERSION)-docs-html.tar |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
123 (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-html.zip python-$(DISTVERSION)-docs-html) |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
124 rm -r dist/python-$(DISTVERSION)-docs-html |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
125 rm dist/python-$(DISTVERSION)-docs-html.tar |
| 49254 | 126 |
| 127 # archive the text build | |
| 128 make text | |
|
50305
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
129 cp -pPR build/text dist/python-$(DISTVERSION)-docs-text |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
130 tar -C dist -cf dist/python-$(DISTVERSION)-docs-text.tar python-$(DISTVERSION)-docs-text |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
131 bzip2 -9 -k dist/python-$(DISTVERSION)-docs-text.tar |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
132 (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-text.zip python-$(DISTVERSION)-docs-text) |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
133 rm -r dist/python-$(DISTVERSION)-docs-text |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
134 rm dist/python-$(DISTVERSION)-docs-text.tar |
|
53461
64110c0ad530
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
Georg Brandl <georg@python.org>
parents:
53460
diff
changeset
|
135 |
| 49254 | 136 # archive the A4 latex |
| 137 -rm -r build/latex | |
| 138 make latex PAPER=a4 | |
| 139 (cd build/latex; make clean && make all-pdf && make FMT=pdf zip bz2) | |
|
50305
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
140 cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-a4.zip |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
141 cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-a4.tar.bz2 |
| 49254 | 142 |
| 143 # archive the letter latex | |
| 144 rm -r build/latex | |
| 145 make latex PAPER=letter | |
| 146 (cd build/latex; make clean && make all-pdf && make FMT=pdf zip bz2) | |
|
50305
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
147 cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-letter.zip |
|
e673632e1885
Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
49374
diff
changeset
|
148 cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2 |
| 49254 | 149 |
|
50505
c75720c3e16e
Add rstlint, a little tool to find subtle markup problems and inconsistencies in the Doc sources.
Georg Brandl <georg@python.org>
parents:
50305
diff
changeset
|
150 check: |
|
50510
989314d7cc5e
Disable the line length checker by default.
Georg Brandl <georg@python.org>
parents:
50505
diff
changeset
|
151 $(PYTHON) tools/rstlint.py -i tools |
