diff options
| author | mattn <[email protected]> | 2013-01-10 14:40:52 +0900 |
|---|---|---|
| committer | mattn <[email protected]> | 2013-01-10 14:40:52 +0900 |
| commit | e35ce6c230479b24eb0d60ca8717f98e90ff78d2 (patch) | |
| tree | 6838353019f52113f80560b438ed776e43436419 /Rakefile | |
| parent | ee0f73a46a17411f6dfc88163bf5d76241932a48 (diff) | |
| parent | af624a0ac6e59d7d7d8fececfa5dca1c2636833f (diff) | |
| download | mruby-e35ce6c230479b24eb0d60ca8717f98e90ff78d2.tar.gz mruby-e35ce6c230479b24eb0d60ca8717f98e90ff78d2.zip | |
Merge branch 'master' of https://github.com/mruby/mruby
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -27,18 +27,22 @@ load 'test/mrbtest.rake' # generic build targets, rules task :default => :all -binfiles = MRuby.targets['host'].bins.map do |bin| +depfiles = MRuby.targets['host'].bins.map do |bin| install_path = exefile("bin/#{bin}") file install_path => exefile("build/host/bin/#{bin}") do |t| FileUtils.cp t.prerequisites.first, t.name end - + install_path end +depfiles += MRuby.targets.reject {|n,t| n == 'host' }.map do |n, t| + ["#{t.build_dir}/lib/libmruby.a"] + t.bins.map { |bin| exefile("#{t.build_dir}/bin/#{bin}") } +end + desc "build all targets, install (locally) in-repo" -task :all => binfiles + MRuby.targets.values.map { |t| [exefile("#{t.build_dir}/bin/mruby"), exefile("#{t.build_dir}/bin/mirb"), exefile("#{t.build_dir}/bin/mrbc")] }.flatten +task :all => depfiles desc "run all mruby tests" task :test => MRuby.targets.values.map { |t| exefile("#{t.build_dir}/test/mrbtest") } do @@ -53,5 +57,5 @@ task :clean do MRuby.each_target do |t| FileUtils.rm_rf t.build_dir end - FileUtils.rm_f binfiles + FileUtils.rm_f depfiles end |
