summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-06-17 14:02:13 +0200
committerNicholas Clark <nick@ccl4.org>2013-06-19 08:55:05 +0200
commite621c5a8064a4cffa204d26e26e2499b98a75724 (patch)
tree7837464276385ee9e4ddf192c783593a077b984b /Makefile.SH
parent96d496e4cd065116b687b145979ad9c56cfd5a5d (diff)
downloadperl-e621c5a8064a4cffa204d26e26e2499b98a75724.tar.gz
For *nix, only delete the ppport.h files that we created.
Given that we have the list of places to create ppport.h files easily accessible, it's easy to delete only the files that we created, and avoid a find recursing into all of ext/, dist/ and cpan/. This also means that if anyone drops a module from CPAN into ext/ to build it as part of the core, any ppport.h it has won't be wiped out by the core. This is one of the few things that goes wrong, as the rest of the distclean target is very careful to only delete files that it knows that the build process built.
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-xMakefile.SH2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH
index cac96e72e4..1364ba3310 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1324,7 +1324,7 @@ _cleaner1:
sh $(CLEAN).sh ; \
fi
rm -f realclean.sh veryclean.sh
- -for file in `find cpan dist ext -name ppport.h` ; do rm -f $$file; done
+ -rm -f `grep -v ^# mkppport.lst | grep . | sed -e 's/$$/\/ppport.h/'`
# Dear POSIX, thanks for making the default to xargs to be
# run once if nothhing is passed in. It is such a great help.