[macruby-changes] [2083] MacRuby/branches/experimental/rakelib/builder.rake

source_changes at macosforge.org source_changes at macosforge.org
Sat Jul 25 19:34:44 PDT 2009


Revision: 2083
          http://trac.macosforge.org/projects/ruby/changeset/2083
Author:   lsansonetti at apple.com
Date:     2009-07-25 19:34:43 -0700 (Sat, 25 Jul 2009)
Log Message:
-----------
don't try to run extconf.rb if the target is :clean

Modified Paths:
--------------
    MacRuby/branches/experimental/rakelib/builder.rake

Modified: MacRuby/branches/experimental/rakelib/builder.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/builder.rake	2009-07-26 02:32:41 UTC (rev 2082)
+++ MacRuby/branches/experimental/rakelib/builder.rake	2009-07-26 02:34:43 UTC (rev 2083)
@@ -320,7 +320,7 @@
       Dir.chdir(dir) do
         $stderr.puts "cd #{dir}"
         srcdir = File.join(*dir.split(File::SEPARATOR).map { |x| '..' })
-        if !File.exist?('Makefile') or File.mtime('extconf.rb') > File.mtime('Makefile')
+        if target != :clean and (!File.exist?('Makefile') or File.mtime('extconf.rb') > File.mtime('Makefile'))
           sh "#{srcdir}/miniruby -I#{srcdir} -I#{srcdir}/lib extconf.rb"
         end
         line = "/usr/bin/make top_srcdir=#{srcdir} ruby=\"#{srcdir}/miniruby -I#{srcdir} -I#{srcdir}/lib\""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090725/9e084a10/attachment.html>


More information about the macruby-changes mailing list