Commit d8dcee58 authored by mattn's avatar mattn

build gems if build_config.rb is modified.

parent 28b4eac5
...@@ -8,7 +8,8 @@ load 'tasks/mruby_gem_spec.rake' ...@@ -8,7 +8,8 @@ load 'tasks/mruby_gem_spec.rake'
############################## ##############################
# compile flags # 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 'tasks/rules.rake'
load 'src/mruby_core.rake' load 'src/mruby_core.rake'
...@@ -37,9 +38,9 @@ depfiles = MRuby.targets['host'].bins.map do |bin| ...@@ -37,9 +38,9 @@ depfiles = MRuby.targets['host'].bins.map do |bin|
install_path install_path
end 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}") } ["#{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" desc "build all targets, install (locally) in-repo"
task :all => depfiles task :all => depfiles
......
...@@ -29,5 +29,7 @@ mrb_init_mrbgems(mrb_state *mrb) { ...@@ -29,5 +29,7 @@ mrb_init_mrbgems(mrb_state *mrb) {
__EOF__ __EOF__
end end
end end
file "#{build_dir}/mrbgems/gem_init.c" => MRUBY_CONFIG
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment