Skip to content

Commit 86a67f8

Browse files
authored
[3.11] Add mkdirs to fix 3.11 docs build (#145571)
1 parent c7ab95a commit 86a67f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ dist:
201201
.PHONY: dist-html
202202
dist-html:
203203
# archive the HTML
204+
mkdir -p dist
204205
make html
205206
cp -pPR build/html dist/python-$(DISTVERSION)-docs-html
206207
tar -C dist -cf dist/python-$(DISTVERSION)-docs-html.tar python-$(DISTVERSION)-docs-html
@@ -212,6 +213,7 @@ dist-html:
212213
.PHONY: dist-text
213214
dist-text:
214215
# archive the text build
216+
mkdir -p dist
215217
make text
216218
cp -pPR build/text dist/python-$(DISTVERSION)-docs-text
217219
tar -C dist -cf dist/python-$(DISTVERSION)-docs-text.tar python-$(DISTVERSION)-docs-text
@@ -223,6 +225,7 @@ dist-text:
223225
.PHONY: dist-pdf
224226
dist-pdf:
225227
# archive the A4 latex
228+
mkdir -p dist
226229
rm -rf build/latex
227230
make latex PAPER=a4
228231
-sed -i 's/makeindex/makeindex -q/' build/latex/Makefile
@@ -241,13 +244,15 @@ dist-pdf:
241244
.PHONY: dist-epub
242245
dist-epub:
243246
# copy the epub build
247+
mkdir -p dist
244248
rm -rf build/epub
245249
make epub
246250
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
247251

248252
.PHONY: dist-texinfo
249253
dist-texinfo:
250254
# archive the texinfo build
255+
mkdir -p dist
251256
rm -rf build/texinfo
252257
make texinfo
253258
make info --directory=build/texinfo

0 commit comments

Comments
 (0)