From: James <6125322+SnoopJ@users.noreply.github.com> Date: Sun, 24 May 2026 13:32:48 +0000 (-0400) Subject: gh-110704: Recommend `distclean` target over `clean` when source tree is not clean... X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=34631058f2aec6752ebfc50d40958b247532f536;p=thirdparty%2FPython%2Fcpython.git gh-110704: Recommend `distclean` target over `clean` when source tree is not clean (GH-112610) Recommend `distclean` target over `clean` when source tree is not clean Co-authored-by: Gregory P. Smith --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 765c72290e46..e8b44c4b874e 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -795,7 +795,7 @@ check-clean-src: echo "Building Python out of the source tree (in $(abs_builddir)) requires a clean source tree ($(abs_srcdir))" ; \ echo "Build artifacts such as .o files, executables, and Python/frozen_modules/*.h must not exist within $(srcdir)." ; \ echo "Try to run:" ; \ - echo " (cd \"$(srcdir)\" && make clean || git clean -fdx -e Doc/venv)" ; \ + echo " (cd \"$(srcdir)\" && make distclean || git clean -fdx -e Doc/venv)" ; \ exit 1; \ fi