From: Christian Heimes Date: Sun, 24 Nov 2013 02:32:40 +0000 (+0100) Subject: Fix make distclean for out-of-tree builds X-Git-Tag: v3.4.0b1~23^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8471862d6514714790f4b9a0a51f3b7673de20c;p=thirdparty%2FPython%2Fcpython.git Fix make distclean for out-of-tree builds --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 5f677c803f87..a6aa97577685 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1413,8 +1413,8 @@ clobber: clean profile-removal # 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 \