Skip to content

Commit 975d1a9

Browse files
committed
[3.10] gh-139436: Remove dist-pdf from the docs archives rebuild target (GH-139437)
(cherry picked from commit 0e2cdd3) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 0142619 commit 975d1a9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

Doc/Makefile

Lines changed: 19 additions & 1 deletion
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

0 commit comments

Comments
 (0)