Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[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>
  • Loading branch information
AA-Turner committed Oct 21, 2025
commit 975d1a978acda300b9c0e674354130722774f6ac
20 changes: 19 additions & 1 deletion Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,20 @@ venv:
echo "The venv has been created in the $(VENVDIR) directory"; \
fi

.PHONY: dist-no-html
dist-no-html: dist-text dist-epub dist-texinfo

dist:
rm -rf dist
mkdir -p dist

$(MAKE) dist-html
$(MAKE) dist-text
$(MAKE) dist-pdf
$(MAKE) dist-epub
$(MAKE) dist-texinfo

.PHONY: dist-html
dist-html:
# archive the HTML
make html
cp -pPR build/html dist/python-$(DISTVERSION)-docs-html
Expand All @@ -168,6 +178,8 @@ dist:
rm -r dist/python-$(DISTVERSION)-docs-html
rm dist/python-$(DISTVERSION)-docs-html.tar

.PHONY: dist-text
dist-text:
# archive the text build
make text
cp -pPR build/text dist/python-$(DISTVERSION)-docs-text
Expand All @@ -177,6 +189,8 @@ dist:
rm -r dist/python-$(DISTVERSION)-docs-text
rm dist/python-$(DISTVERSION)-docs-text.tar

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

.PHONY: dist-epub
dist-epub:
# copy the epub build
rm -rf build/epub
make epub
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub

.PHONY: dist-texinfo
dist-texinfo:
# archive the texinfo build
rm -rf build/texinfo
make texinfo
Expand Down
Loading