From d601388a9651d5cd21c44e12610692123733f555 Mon Sep 17 00:00:00 2001 From: James Gerity Date: Fri, 1 Dec 2023 18:32:28 -0500 Subject: [PATCH] Recommend `distclean` target over `clean` when source tree is not clean --- Makefile.pre.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index e7f8abce43d648..94c3f027b15a00 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -661,7 +661,7 @@ check-clean-src: \); then \ echo "Error: The source directory ($(srcdir)) is not clean" ; \ echo "Building Python out of the source tree (in $(abs_builddir)) requires a clean source tree ($(abs_srcdir))" ; \ - echo "Try to run: make -C \"$(srcdir)\" clean" ; \ + echo "Try to run: make -C \"$(srcdir)\" distclean" ; \ exit 1; \ fi