]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110704: Recommend `distclean` target over `clean` when source tree is not clean...
authorJames <6125322+SnoopJ@users.noreply.github.com>
Sun, 24 May 2026 13:32:48 +0000 (09:32 -0400)
committerGitHub <noreply@github.com>
Sun, 24 May 2026 13:32:48 +0000 (13:32 +0000)
Recommend `distclean` target over `clean` when source tree is not clean

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Makefile.pre.in

index 765c72290e46ee453dab336ad06f8fce5c3d0cb9..e8b44c4b874e95407ac569f23775160d102727fd 100644 (file)
@@ -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