diff options
author | Senthil Kumaran <senthil@python.org> | 2022-10-04 21:56:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 21:56:55 (GMT) |
commit | 989bdbcfae265e6e7f5b8ef1551443a6f19a58d9 (patch) | |
tree | 5d9b31fa5d711e62ea26a458fb6c485407d14dac | |
parent | 19ed29ed3c96e21998afc35af13845c7868509b6 (diff) | |
download | cpython-989bdbcfae265e6e7f5b8ef1551443a6f19a58d9.zip cpython-989bdbcfae265e6e7f5b8ef1551443a6f19a58d9.tar.gz cpython-989bdbcfae265e6e7f5b8ef1551443a6f19a58d9.tar.bz2 |
[3.10] gh-97731: fix distclean target to clean docs GH-97732 (#97846)
Backport gh-97731: fix distclean target to clean docs #97732 to 3.10
-rw-r--r-- | Makefile.pre.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index ee85f35..95f0d87 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1897,8 +1897,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. @@ -1942,7 +1941,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 |