Changeset 805 for trunk/Rakefile

Show
Ignore:
Timestamp:
11/28/08 08:15:15 (3 months ago)
Author:
raggi
Message:

Another make adjustment for win32

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Rakefile

    r804 r805  
    3939$eventmachine_library = :pure_ruby if ENV['EVENTMACHINE_LIBRARY'] == 'pure_ruby' 
    4040 
     41MAKE = ENV['MAKE'] || if RUBY_PLATFORM =~ /mswin/ # mingw uses make. 
     42  'nmake' 
     43else 
     44  'make' 
     45end 
     46 
    4147# If running under rubygems... 
    4248__DIR__ ||= File.expand_path(File.dirname(__FILE__)) 
     
    6672task :clean do 
    6773  chdir 'ext' do 
    68     make = if RUBY_PLATFORM =~ /mswin/ # mingw uses make. 
    69       'nmake' 
    70     else 
    71       'make' 
    72     end 
    73     sh "#{make} clean" if test ?e, 'Makefile' 
     74    sh "#{MAKE} clean" if test ?e, 'Makefile' 
    7475  end 
    7576  Dir.glob('**/Makefile').each { |file| rm file } 
     
    127128  task :make => [:makefile] do 
    128129    chdir 'ext' do 
    129       sh 'make' 
     130      sh MAKE 
    130131    end 
    131132  end