Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1969e01

Browse files
committed
Fix make distclean for out-of-tree builds
2 parents 1631b9b + f847186 commit 1969e01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,8 +1533,8 @@ clobber: clean profile-removal
15331533
# remove all generated files, even Makefile[.pre]
15341534
# Keep configure and Python-ast.[ch], it's possible they can't be generated
15351535
distclean: clobber
1536-
for file in Lib/test/data/* ; do \
1537-
if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \
1536+
for file in $(srcdir)/Lib/test/data/* ; do \
1537+
if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$file"; fi; \
15381538
done
15391539
-rm -f core Makefile Makefile.pre config.status \
15401540
Modules/Setup Modules/Setup.local Modules/Setup.config \

0 commit comments

Comments
 (0)