null+****@clear*****
null+****@clear*****
2012年 6月 21日 (木) 18:05:21 JST
Kouhei Sutou 2012-06-21 18:05:21 +0900 (Thu, 21 Jun 2012) New Revision: d474e0b5e4e77012dc3181c81007c642b262322b https://github.com/groonga/gcs/commit/d474e0b5e4e77012dc3181c81007c642b262322b Log: package: use gmake on *BSD Modified files: packages/all-in-one/Rakefile Modified: packages/all-in-one/Rakefile (+17 -6) =================================================================== --- packages/all-in-one/Rakefile 2012-06-21 18:01:07 +0900 (9f637ee) +++ packages/all-in-one/Rakefile 2012-06-21 18:05:21 +0900 (07fcfc6) @@ -21,6 +21,17 @@ tmp_dir = base_dir + "tmp" directory @download_dir.to_s directory @build_dir.to_s +def detect_make + case RUBY_PLATFORM + when /bsd/ + "gmake" + else + "make" + end +end + +make = ENV["MAKE"] || detect_make + def download(url) url = URI.parse(url) unless url.is_a?(URI::Generic) basename = File.basename(url.path) @@ -76,8 +87,8 @@ namespace(:msgpack) do options = ["--prefix=#{@dist_dir}"] options.concat(debug_flags) if build_debug_p sh("./configure", *options) or exit(false) - sh("make", "-j8") or exit(false) - sh("make", "install") or exit(false) + sh(make, "-j8") or exit(false) + sh(make, "install") or exit(false) end end end @@ -112,8 +123,8 @@ namespace(:groonga) do options << "--without-cutter" options.concat(debug_flags) if build_debug_p sh("./configure", *options) or exit(false) - sh("make", "-j8") or exit(false) - sh("make", "install") or exit(false) + sh(make, "-j8") or exit(false) + sh(make, "install") or exit(false) end end end @@ -144,8 +155,8 @@ namespace(:node) do options = ["--prefix=#{@dist_dir}"] # options.concat(debug_flags) if build_debug_p sh("./configure", *options) or exit(false) - sh("make", "-j8") or exit(false) - sh("make", "install") or exit(false) + sh(make, "-j8") or exit(false) + sh(make, "install") or exit(false) end end end -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download