Skip to content

Commit 46eecc3

Browse files
authored
gh-97731: fix distclean target to clean docs (#97732)
fix distclean target to clean docs
1 parent 116fa62 commit 46eecc3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Makefile.pre.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,7 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@
18631863
$(DSYMUTIL_PATH) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(INSTSONAME); \
18641864
fi \
18651865
fi
1866-
1866+
18671867

18681868
bininstall: altbininstall
18691869
if test ! -d $(DESTDIR)$(LIBPC); then \
@@ -2432,8 +2432,7 @@ rmtestturds:
24322432
-rm -f gb-18030-2000.xml
24332433

24342434
docclean:
2435-
-rm -rf Doc/build
2436-
-rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils
2435+
$(MAKE) -C Doc clean
24372436

24382437
# like the 'clean' target but retain the profile guided optimization (PGO)
24392438
# data. The PGO data is only valid if source code remains unchanged.
@@ -2485,7 +2484,7 @@ clobber: clean
24852484
# Make things extra clean, before making a distribution:
24862485
# remove all generated files, even Makefile[.pre]
24872486
# Keep configure and Python-ast.[ch], it's possible they can't be generated
2488-
distclean: clobber
2487+
distclean: clobber docclean
24892488
for file in $(srcdir)/Lib/test/data/* ; do \
24902489
if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$file"; fi; \
24912490
done

0 commit comments

Comments
 (0)