From: Chip Salzenberg Date: Tue, 24 Dec 1996 04:08:18 +0000 (+1200) Subject: Don't recurse into subdirs twice on 'make realclean' X-Git-Tag: accepted/trunk/20130322.191538~38041^2~553 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70af249b6894da2bfa21d417f3d588e5e8131dcc;p=platform%2Fupstream%2Fperl.git Don't recurse into subdirs twice on 'make realclean' --- diff --git a/Makefile.SH b/Makefile.SH index 38c787b..a336d7d 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -394,25 +394,31 @@ d_dummy $(dynamic_ext): miniperl preplibrary $(DYNALOADER) FORCE s_dummy $(static_ext): miniperl preplibrary $(DYNALOADER) FORCE @sh ext/util/make_ext static $@ LIBPERL_A=$(LIBPERL) -clean: +clean: _tidy _mopop + +realclean: _cleaner _mopup + @echo "Note that make realclean does not delete config.sh" + +clobber: _cleaner _mopup + rm -f config.sh cppstdin + +distclean: clobber + +# Do not 'make _mopup' directly. +_mopup: rm -f *$(OBJ_EXT) *$(LIB_EXT) all perlmain.c rm -f perl.exp ext.libs -rm -f perl.export perl.dll perl.libexp perl.map perl.def + rm -f perl suidperl miniperl $(LIBPERL) + +# Do not 'make _tidy' directly. +_tidy: -cd pod; $(MAKE) clean -cd utils; $(MAKE) clean -cd x2p; $(MAKE) clean -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) ; do \ sh ext/util/make_ext clean $$x ; \ done - rm -f perl suidperl miniperl $(LIBPERL) - -realclean: clean _cleaner - @echo "Note that make realclean does not delete config.sh" - -clobber: clean _cleaner - rm -f config.sh cppstdin - -distclean: clobber # Do not 'make _cleaner' directly. _cleaner: