From 3cef10489ae2e61ef0a14d9b676d0242e4640ccd Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 1 Mar 2017 07:53:15 +0000 Subject: common.mk: separate clean-ext * common.mk (clean-ext): separate clean-up of makefiles and timestamps, and clean-up of subdirectories under ext and gems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- common.mk | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'common.mk') diff --git a/common.mk b/common.mk index 2cbe3591d4..9b0caaef6a 100644 --- a/common.mk +++ b/common.mk @@ -568,11 +568,30 @@ realclean-extout: distclean-extout realclean-platform: distclean-platform realclean-rubyspec: distclean-rubyspec -clean-ext distclean-ext realclean-ext:: - $(Q)$(RM) $(EXTS_MK) +clean-ext:: ext/clean gems/clean timestamp/clean +distclean-ext:: ext/distclean gems/distclean timestamp/distclean +realclean-ext:: ext/realclean gems/realclean timestamp/realclean + +ext/clean.mk ext/distclean.mk ext/realclean.mk:: +ext/clean gems/clean:: ext/clean.mk +ext/distclean gems/distclean:: ext/distclean.mk +ext/realclean gems/realclean:: ext/realclean.mk + +timestamp/clean:: ext/clean gems/clean +timestamp/distclean:: ext/distclean gems/distclean +timestamp/realclean:: ext/realclean gems/realclean + +timestamp/clean timestamp/distclean timestamp/realclean:: $(Q)$(RM) $(TIMESTAMPDIR)/.*.time $(TIMESTAMPDIR)/.$(arch).time $(TIMESTAMPDIR)/$(arch)/.time $(Q)$(RMDIRS) $(TIMESTAMPDIR)/$(arch) 2> $(NULL) || exit 0 +clean-ext:: + -$(Q)$(RM) ext/extinit.$(OBJEXT) + +distclean-ext realclean-ext:: + -$(Q)$(RM) $(EXTS_MK) ext/extinit.* ext/configure-ext.mk + -$(Q)$(RMDIR) ext 2> $(NULL) || exit 0 + clean-enc distclean-enc realclean-enc: PHONY clean-enc: clean-enc.d -- cgit v1.2.3