mirror of
https://github.com/python/cpython
synced 2024-10-14 15:47:07 +00:00
gh-97731: fix distclean target to clean docs (#97732)
fix distclean target to clean docs
This commit is contained in:
parent
116fa62c6e
commit
46eecc3b33
|
@ -2432,8 +2432,7 @@ rmtestturds:
|
|||
-rm -f gb-18030-2000.xml
|
||||
|
||||
docclean:
|
||||
-rm -rf Doc/build
|
||||
-rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils
|
||||
$(MAKE) -C Doc clean
|
||||
|
||||
# like the 'clean' target but retain the profile guided optimization (PGO)
|
||||
# data. The PGO data is only valid if source code remains unchanged.
|
||||
|
@ -2485,7 +2484,7 @@ clobber: clean
|
|||
# Make things extra clean, before making a distribution:
|
||||
# remove all generated files, even Makefile[.pre]
|
||||
# Keep configure and Python-ast.[ch], it's possible they can't be generated
|
||||
distclean: clobber
|
||||
distclean: clobber docclean
|
||||
for file in $(srcdir)/Lib/test/data/* ; do \
|
||||
if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$file"; fi; \
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue