]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix make distclean for out-of-tree builds
authorChristian Heimes <christian@cheimes.de>
Sun, 24 Nov 2013 02:32:40 +0000 (03:32 +0100)
committerChristian Heimes <christian@cheimes.de>
Sun, 24 Nov 2013 02:32:40 +0000 (03:32 +0100)
Makefile.pre.in

index 5f677c803f87297750a1ec91450f5e923d8b0fc1..a6aa97577685db19e00862897555058a22c0099d 100644 (file)
@@ -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 \