]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-110704: Recommend `distclean` target over `clean` when source tree is not...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 24 May 2026 15:47:44 +0000 (17:47 +0200)
committerGitHub <noreply@github.com>
Sun, 24 May 2026 15:47:44 +0000 (08:47 -0700)
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
(cherry picked from commit 34631058f2aec6752ebfc50d40958b247532f536)

Co-authored-by: James <6125322+SnoopJ@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Makefile.pre.in

index da6d7c33156abff1003a85a8d70a8e9fe33ae821..ce320042bbf043008b5ce7a0ba35b7365149f288 100644 (file)
@@ -820,7 +820,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