]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] gh-139436: Remove ``dist-pdf`` from the docs archives rebuild target (GH-139437...
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>
Fri, 31 Oct 2025 10:24:16 +0000 (10:24 +0000)
committerGitHub <noreply@github.com>
Fri, 31 Oct 2025 10:24:16 +0000 (11:24 +0100)
(cherry picked from commit 0e2cdd313ba5c67c5e2e21d993399b890e687c63)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/Makefile

index 3cf2040f40087184e35a127bf0602115e0693020..edfe9f7a3eb1179b8daef7afafb46b8b158ae3b6 100644 (file)
@@ -154,10 +154,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
@@ -167,6 +177,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
@@ -176,6 +188,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
@@ -192,11 +206,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
@@ -223,12 +241,12 @@ serve:
 
 # for development releases: always build
 autobuild-dev:
-       make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
+       make dist-no-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
        -make suspicious
 
 # for quick rebuilds (HTML only)
 autobuild-dev-html:
-       make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
+       make dist-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
 
 # for stable releases: only build if not in pre-release stage (alpha, beta)
 # release candidate downloads are okay, since the stable tree can be in that stage