From 70af249b6894da2bfa21d417f3d588e5e8131dcc Mon Sep 17 00:00:00 2001 From: Chip Salzenberg Date: Tue, 24 Dec 1996 16:08:18 +1200 Subject: [PATCH] Don't recurse into subdirs twice on 'make realclean' --- Makefile.SH | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) 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: -- 2.7.4