[Python-checkins] cpython (merge 3.3 -> default): Fix make distclean for out-of-tree builds

christian.heimes python-checkins at python.org
Sun Nov 24 03:33:02 CET 2013


http://hg.python.org/cpython/rev/7a18ddbeaaee
changeset:   87481:7a18ddbeaaee
parent:      87479:989de1a267b1
parent:      87480:73c72bd2322b
user:        Christian Heimes <christian at cheimes.de>
date:        Sun Nov 24 03:32:51 2013 +0100
summary:
  Fix make distclean for out-of-tree builds

files:
  Makefile.pre.in |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1533,8 +1533,8 @@
 # remove all generated files, even Makefile[.pre]
 # Keep configure and Python-ast.[ch], it's possible they can't be generated
 distclean: clobber
-	for file in Lib/test/data/* ; do \
-	    if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \
+	for file in $(srcdir)/Lib/test/data/* ; do \
+	    if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$file"; fi; \
 	done
 	-rm -f core Makefile Makefile.pre config.status \
 		Modules/Setup Modules/Setup.local Modules/Setup.config \

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list