summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-14 10:32:44 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-14 10:32:44 +0000
commit61edc68382f612a884a3181266d6220ea3a727eb (patch)
tree6f11064ee8b84f3dc23302ab9584ccae02a19a0b /Makefile.SH
parent29638d28d4592a1802e976efd732f501c8ff0af8 (diff)
downloadperl-61edc68382f612a884a3181266d6220ea3a727eb.tar.gz
Make make_ext.pl write out a shell script of its actions for make distclean etc
(In case the user runs make clean; make distclean; as clean removes miniperl) Change the #! line to ./miniperl
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 629f51cfb5..6480b947d6 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1233,9 +1233,14 @@ _cleaner1:
-cd pod; $(LDLIBPTH) $(MAKE) $(CLEAN)
-cd utils; $(LDLIBPTH) $(MAKE) $(CLEAN)
-cd x2p; $(LDLIBPTH) $(MAKE) $(CLEAN)
- -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) $(nonxs_ext) ; do \
+ -@if test -f miniperl$(EXE_EXT) ; then \
+ for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) $(nonxs_ext) ; do \
$(LDLIBPTH) $(RUN) ./miniperl$(EXE_EXT) -Ilib ext/util/make_ext.pl $(CLEAN) $$x MAKE=$(MAKE) ; \
- done
+ done ; \
+ else \
+ sh $(CLEAN).sh ; \
+ fi
+ rm -f realclean.sh veryclean.sh
-@test ! -f ./miniperl$(EXE_EXT) || $(LDLIBPTH) $(RUN) ./miniperl$(EXE_EXT) -Ilib mkppport --clean
# Some systems do not support "?", so keep these files separate.