diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-01-14 10:32:44 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-01-14 10:32:44 +0000 |
commit | 61edc68382f612a884a3181266d6220ea3a727eb (patch) | |
tree | 6f11064ee8b84f3dc23302ab9584ccae02a19a0b /Makefile.SH | |
parent | 29638d28d4592a1802e976efd732f501c8ff0af8 (diff) | |
download | perl-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.SH | 9 |
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. |