summaryrefslogtreecommitdiff
path: root/Cross
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-05-16 12:17:21 +0100
committerNicholas Clark <nick@ccl4.org>2011-05-19 09:25:21 +0100
commitf18bc4a843b9dea1f23385742e87117dcebb86ed (patch)
treed9ff9f65be2c206de500e428c7a96ad3a8d53137 /Cross
parent1d968d649095b6d86f9a32b6271b28fdc76bd2ad (diff)
downloadperl-f18bc4a843b9dea1f23385742e87117dcebb86ed.tar.gz
Avoid make distclean failing if t/tmp* matches a directory.
Some of the tests in t/ make directories with names generated by the test.pl tempfile(), and if they exit abnormally without deleting them, this would cause distclean to fail. So change `rm -f t/tmp*` to `rm -rf t/tmp*` Remove other cruft from the same line in the Makefile. t/misctmp* hasn't been generated since 7a7e49369367a634. t/forktmp* hasn't been generated since 1c25d394345c1b97. t/io/fs.t has deleted t/c itself since 44a8e56aa037ed0f. (Whilst it might abort and fail to delete it, there's no special treatment in the Makefile for the other file that it creates, "t/TEST$$")
Diffstat (limited to 'Cross')
-rw-r--r--Cross/Makefile-cross-SH3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cross/Makefile-cross-SH b/Cross/Makefile-cross-SH
index 756538d514..e555ba7656 100644
--- a/Cross/Makefile-cross-SH
+++ b/Cross/Makefile-cross-SH
@@ -991,7 +991,8 @@ _cleaner1:
_cleaner2:
-rm -f core.*perl.*.? t/core.perl.*.? .?*.c
rm -f core *perl.core t/core t/*perl.core core.* t/core.*
- rm -f t/misctmp* t/forktmp* t/tmp* t/c t/perl$(EXE_EXT) t/rantests
+ rm -f t/perl$(EXE_EXT) t/rantests
+ rm -rf t/tmp*
rm -f so_locations $(LIBPERL_NONSHR) $(MINIPERL_NONSHR)
rm -rf $(addedbyconf)
rm -f $(FIRSTMAKEFILE) $(FIRSTMAKEFILE).old makefile.old