Skip to content

Commit d3118eb

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

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
@@ -154,10 +154,20 @@ venv:
154154
echo "The venv has been created in the $(VENVDIR) directory"; \
155155
fi
156156

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

180+
.PHONY: dist-text
181+
dist-text:
170182
# archive the text build
171183
make text
172184
cp -pPR build/text dist/python-$(DISTVERSION)-docs-text
@@ -176,6 +188,8 @@ dist:
176188
rm -r dist/python-$(DISTVERSION)-docs-text
177189
rm dist/python-$(DISTVERSION)-docs-text.tar
178190

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

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

216+
.PHONY: dist-texinfo
217+
dist-texinfo:
200218
# archive the texinfo build
201219
rm -rf build/texinfo
202220
make texinfo
@@ -223,12 +241,12 @@ serve:
223241

224242
# for development releases: always build
225243
autobuild-dev:
226-
make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
244+
make dist-no-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
227245
-make suspicious
228246

229247
# for quick rebuilds (HTML only)
230248
autobuild-dev-html:
231-
make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
249+
make dist-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
232250

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

0 commit comments

Comments
 (0)