From 82fa2995b5ca47d3383cce82ba5c75da4f09da5a Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 28 Apr 2012 14:22:25 +0000 Subject: * ext/-test-/win32/dln/extconf.rb: remove test DLL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/-test-/win32/dln/extconf.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/-test-/win32/dln/extconf.rb b/ext/-test-/win32/dln/extconf.rb index cc94a67549..0b5089af14 100644 --- a/ext/-test-/win32/dln/extconf.rb +++ b/ext/-test-/win32/dln/extconf.rb @@ -1,12 +1,14 @@ if $mingw or $mswin $objs = ["dlntest.o"] - $cleanfiles << "$(topdir)/dlntest.dll" + testdll = "$(topdir)/dlntest.dll" + $cleanfiles << testdll config_string('cleanobjs') {|t| $cleanfiles.concat(t.gsub(/\$\*/, 'dlntest').split)} create_makefile("-test-/win32/dln") m = File.read("Makefile") dlntestlib = "dlntest.#{$LIBEXT}" m.sub!(/^OBJS =.*/) {"#{$&} #{dlntestlib}"} + FileUtils.rm_f(RbConfig.expand(testdll.dup)) open("Makefile", "wb") do |mf| mf.puts m, "\n" sodir = $extout ? "$(RUBYARCHDIR)/" : '' -- cgit v1.2.3