From b8e79f34a29950102bf0db20b025cd4916da2787 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Dec 2008 04:45:34 +0000 Subject: * configure.in (Makefile): removes GNU make specific files on distclean. * Makefile.in (distclean-ext): removes extension directories. * lib/mkmf.rb (try_do): removes conftest.dSYM git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mkmf.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/mkmf.rb') diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 615b898429..5686f8137b 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -194,6 +194,10 @@ def rm_f(*files) FileUtils.rm_f(Dir[*files]) end +def rm_rf(*files) + FileUtils.rm_rf(Dir[*files]) +end + # Returns time stamp of the +target+ file if it exists and is newer # than or equal to all of +times+. def modified?(target, times) @@ -361,6 +365,7 @@ MSG xsystem(command) ensure log_src(src) + rm_rf 'conftest.dSYM' end def link_command(ldflags, opt="", libpath=$DEFLIBPATH|$LIBPATH) @@ -1894,7 +1899,6 @@ clean: \t\t@-$(RM) $(CLEANLIBS#{sep}) $(CLEANOBJS#{sep}) $(CLEANFILES#{sep}) distclean: clean -\t\t@-$(RM_RF) conftest.dSYM \t\t@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log \t\t@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES#{sep}) -- cgit v1.2.3