@@ -184,11 +184,22 @@ venv:
184184 echo " The venv has been created in the $( VENVDIR) directory" ; \
185185 fi
186186
187+ .PHONY : dist-no-html
188+ dist-no-html : dist-text dist-epub dist-texinfo
189+
187190.PHONY : dist
188191dist :
189192 rm -rf dist
190193 mkdir -p dist
191194
195+ $(MAKE) dist-html
196+ $(MAKE) dist-text
197+ $(MAKE) dist-pdf
198+ $(MAKE) dist-epub
199+ $(MAKE) dist-texinfo
200+
201+ .PHONY : dist-html
202+ dist-html :
192203 # archive the HTML
193204 make html
194205 cp -pPR build/html dist/python-$(DISTVERSION ) -docs-html
@@ -198,6 +209,8 @@ dist:
198209 rm -r dist/python-$(DISTVERSION ) -docs-html
199210 rm dist/python-$(DISTVERSION ) -docs-html.tar
200211
212+ .PHONY : dist-text
213+ dist-text :
201214 # archive the text build
202215 make text
203216 cp -pPR build/text dist/python-$(DISTVERSION ) -docs-text
@@ -207,6 +220,8 @@ dist:
207220 rm -r dist/python-$(DISTVERSION ) -docs-text
208221 rm dist/python-$(DISTVERSION ) -docs-text.tar
209222
223+ .PHONY : dist-pdf
224+ dist-pdf :
210225 # archive the A4 latex
211226 rm -rf build/latex
212227 make latex PAPER=a4
@@ -223,11 +238,15 @@ dist:
223238 cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-letter.zip
224239 cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2
225240
241+ .PHONY : dist-epub
242+ dist-epub :
226243 # copy the epub build
227244 rm -rf build/epub
228245 make epub
229246 cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION ) -docs.epub
230247
248+ .PHONY : dist-texinfo
249+ dist-texinfo :
231250 # archive the texinfo build
232251 rm -rf build/texinfo
233252 make texinfo
@@ -258,12 +277,12 @@ serve:
258277# for development releases: always build
259278.PHONY : autobuild-dev
260279autobuild-dev :
261- make dist SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
280+ make dist-no-html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
262281
263282# for quick rebuilds (HTML only)
264283.PHONY : autobuild-dev-html
265284autobuild-dev-html :
266- make html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
285+ make dist- html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
267286
268287# for stable releases: only build if not in pre-release stage (alpha, beta)
269288# release candidate downloads are okay, since the stable tree can be in that stage
0 commit comments