diff options
author | Chip Salzenberg <chip@atlantic.net> | 1996-12-24 16:08:18 +1200 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1996-12-25 11:25:00 +1200 |
commit | 70af249b6894da2bfa21d417f3d588e5e8131dcc (patch) | |
tree | 6e852f7147d77cf8be0401c0dcb1b1681ad406f9 | |
parent | a3b937379002b6cdebf8b709a243e9491dac49a1 (diff) | |
download | perl-70af249b6894da2bfa21d417f3d588e5e8131dcc.tar.gz |
Don't recurse into subdirs twice on 'make realclean'
-rwxr-xr-x | Makefile.SH | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/Makefile.SH b/Makefile.SH index 38c787b614..a336d7db42 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: |