Hiroshi Hatake
null+****@clear*****
Sat Jan 31 16:47:52 JST 2015
Hiroshi Hatake 2015-01-31 16:47:52 +0900 (Sat, 31 Jan 2015) New Revision: 4ae4d743e4b0a8972769b22c592150d131baa041 https://github.com/ranguba/rroonga/commit/4ae4d743e4b0a8972769b22c592150d131baa041 Message: Try to build under MinGW (experimental) Modified files: extconf.rb Modified: extconf.rb (+7 -1) =================================================================== --- extconf.rb 2015-01-31 14:08:07 +0900 (9245900) +++ extconf.rb 2015-01-31 16:47:52 +0900 (1c56e35) @@ -19,6 +19,7 @@ require 'English' require 'pathname' require 'fileutils' require 'mkmf' +require 'shellwords' base_dir = Pathname(__FILE__).dirname.realpath @@ -53,11 +54,16 @@ File.open("Makefile", "w") do |makefile| makefile.puts targets = ["all", "clean", "install"] targets.each do |target| + if RUBY_PLATFORM =~ /win|mingw/ + make = `where make`.chomp + else + make = "$(MAKE)" + end # overriding RUBYARCHDIR and RUBYLIBDIR for RubyGems. makefile.puts <<-EOM #{target}: cd #{source_ext_dir}; \\ - $(MAKE) $(MAKE_ARGS) \\ + #{Shellwords.escape(make)} $(MAKE_ARGS) \\ RUBYARCHDIR=$(RUBYARCHDIR) \\ RUBYLIBDIR=$(RUBYLIBDIR) \\ #{target} -------------- next part -------------- HTML����������������������������...Download