Skip to content

Commit 87a9e0f

Browse files
authored
[3.11] gh-97731: fix distclean target to clean docs GH-97732 (#97844)
Backport gh-97731: fix distclean target to clean docs #97732 to 3.11
1 parent dcec9b7 commit 87a9e0f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile.pre.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,8 +2388,7 @@ rmtestturds:
23882388
-rm -f gb-18030-2000.xml
23892389

23902390
docclean:
2391-
-rm -rf Doc/build
2392-
-rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils
2391+
$(MAKE) -C Doc clean
23932392

23942393
# like the 'clean' target but retain the profile guided optimization (PGO)
23952394
# data. The PGO data is only valid if source code remains unchanged.
@@ -2440,7 +2439,7 @@ clobber: clean
24402439
# Make things extra clean, before making a distribution:
24412440
# remove all generated files, even Makefile[.pre]
24422441
# Keep configure and Python-ast.[ch], it's possible they can't be generated
2443-
distclean: clobber
2442+
distclean: clobber docclean
24442443
for file in $(srcdir)/Lib/test/data/* ; do \
24452444
if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$file"; fi; \
24462445
done

0 commit comments

Comments
 (0)