Skip to content

Commit 9104fc6

Browse files
authored
[3.10] pythongh-139436: Remove dist-pdf from the docs archives rebuild target (pythonGH-139437) (pythonGH-140412)
(cherry picked from commit 0e2cdd3) Co-authored-by: Adam Turner <[email protected]>
1 parent 0142619 commit 9104fc6

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

Doc/Makefile

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,20 @@ venv:
155155
echo "The venv has been created in the $(VENVDIR) directory"; \
156156
fi
157157

158+
.PHONY: dist-no-html
159+
dist-no-html: dist-text dist-epub dist-texinfo
160+
158161
dist:
159162
rm -rf dist
160163
mkdir -p dist
161-
164+
$(MAKE) dist-html
165+
$(MAKE) dist-text
166+
$(MAKE) dist-pdf
167+
$(MAKE) dist-epub
168+
$(MAKE) dist-texinfo
169+
170+
.PHONY: dist-html
171+
dist-html:
162172
# archive the HTML
163173
make html
164174
cp -pPR build/html dist/python-$(DISTVERSION)-docs-html
@@ -168,6 +178,8 @@ dist:
168178
rm -r dist/python-$(DISTVERSION)-docs-html
169179
rm dist/python-$(DISTVERSION)-docs-html.tar
170180

181+
.PHONY: dist-text
182+
dist-text:
171183
# archive the text build
172184
make text
173185
cp -pPR build/text dist/python-$(DISTVERSION)-docs-text
@@ -177,6 +189,8 @@ dist:
177189
rm -r dist/python-$(DISTVERSION)-docs-text
178190
rm dist/python-$(DISTVERSION)-docs-text.tar
179191

192+
.PHONY: dist-pdf
193+
dist-pdf:
180194
# archive the A4 latex
181195
rm -rf build/latex
182196
make latex PAPER=a4
@@ -193,11 +207,15 @@ dist:
193207
cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-letter.zip
194208
cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2
195209

210+
.PHONY: dist-epub
211+
dist-epub:
196212
# copy the epub build
197213
rm -rf build/epub
198214
make epub
199215
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
200216

217+
.PHONY: dist-texinfo
218+
dist-texinfo:
201219
# archive the texinfo build
202220
rm -rf build/texinfo
203221
make texinfo
@@ -225,11 +243,11 @@ serve:
225243

226244
# for development releases: always build
227245
autobuild-dev:
228-
make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
246+
make dist-no-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
229247

230248
# for quick rebuilds (HTML only)
231249
autobuild-dev-html:
232-
make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
250+
make dist-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
233251

234252
# for stable releases: only build if not in pre-release stage (alpha, beta)
235253
# release candidate downloads are okay, since the stable tree can be in that stage

0 commit comments

Comments
 (0)