summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authormattn <[email protected]>2013-01-11 21:01:04 +0900
committermattn <[email protected]>2013-01-11 21:01:04 +0900
commitd8dcee584e12b89173f3a695c957ac3c66731353 (patch)
tree7ffee99d892f485ab9b1de01af5257913e744321 /Rakefile
parent28b4eac531fbd018f2ed1ae69d9ce20a4cf71514 (diff)
downloadmruby-d8dcee584e12b89173f3a695c957ac3c66731353.tar.gz
mruby-d8dcee584e12b89173f3a695c957ac3c66731353.zip
build gems if build_config.rb is modified.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index f522c808b..fd0336033 100644
--- a/Rakefile
+++ b/Rakefile
@@ -8,7 +8,8 @@ load 'tasks/mruby_gem_spec.rake'
##############################
# compile flags
-load File.expand_path(ENV['CONFIG'] || './build_config.rb')
+MRUBY_CONFIG = File.expand_path(ENV['MRUBY_CONFIG'] || './build_config.rb')
+load MRUBY_CONFIG
load 'tasks/rules.rake'
load 'src/mruby_core.rake'
@@ -37,9 +38,9 @@ depfiles = MRuby.targets['host'].bins.map do |bin|
install_path
end
-depfiles += MRuby.targets.reject {|n,t| n == 'host' }.map do |n, t|
+depfiles += MRuby.targets.reject {|n,t| n == 'host' }.map { |n, t|
["#{t.build_dir}/lib/libmruby.a"] + t.bins.map { |bin| exefile("#{t.build_dir}/bin/#{bin}") }
-end
+}.flatten
desc "build all targets, install (locally) in-repo"
task :all => depfiles