summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorYuichiro MASUI <[email protected]>2013-01-28 18:22:11 +0900
committerYuichiro MASUI <[email protected]>2013-01-28 18:22:11 +0900
commit5a152c82e640aa1c12e0bedded2233fcd9a8cf18 (patch)
tree6df0d04a796d16d83248f48eb4f6396711aee0d9 /Rakefile
parent0410bb7623a27ac427f190e3144c85b6446bec05 (diff)
downloadmruby-5a152c82e640aa1c12e0bedded2233fcd9a8cf18.tar.gz
mruby-5a152c82e640aa1c12e0bedded2233fcd9a8cf18.zip
load MRUBY_CONFIG script after 'build_config.rb'
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile15
1 files changed, 12 insertions, 3 deletions
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