From 5a152c82e640aa1c12e0bedded2233fcd9a8cf18 Mon Sep 17 00:00:00 2001 From: Yuichiro MASUI Date: Mon, 28 Jan 2013 18:22:11 +0900 Subject: load MRUBY_CONFIG script after 'build_config.rb' --- Rakefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 6a04ef87c..ac2d43ae5 100644 --- a/Rakefile +++ b/Rakefile @@ -8,8 +8,17 @@ load 'tasks/mrbgem_spec.rake' ############################## # compile flags -MRUBY_CONFIG = File.expand_path(ENV['MRUBY_CONFIG'] || './build_config.rb') -load MRUBY_CONFIG +load 'build_config.rb' + +MRUBY_CONFIGS = ['build_config.rb'] +if ENV['MRUBY_CONFIG'] + MRUBY_CONFIGS << ENV['MRUBY_CONFIG'] + load ENV['MRUBY_CONFIG'] +end + +MRuby.each_target do |build| + build.define_rules +end load 'src/mruby_core.rake' load 'mrblib/mrblib.rake' @@ -34,7 +43,7 @@ depfiles = MRuby.targets['host'].bins.map do |bin| FileUtils.rm t.name, :force => true FileUtils.cp t.prerequisites.first, t.name end - + install_path end -- cgit v1.2.3