diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-08-20 15:11:10 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:51 +0900 |
| commit | b7fe929232544120cb81615851b0315ec1a8b360 (patch) | |
| tree | 2e7564cc35878fb5ee1ed118e5c00f07ac8b7ed2 /Rakefile | |
| parent | 20ffc2206ae68545e09cd96b7027055d020a5eb5 (diff) | |
| download | mruby-b7fe929232544120cb81615851b0315ec1a8b360.tar.gz mruby-b7fe929232544120cb81615851b0315ec1a8b360.zip | |
Update `Rakefile`.
So that you can omit `host` target. Now `host-debug` works.
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -52,15 +52,19 @@ task :default => :all bin_path = ENV['INSTALL_DIR'] || "#{MRUBY_ROOT}/bin" -depfiles = MRuby.targets['host'].bins.map do |bin| - install_path = MRuby.targets['host'].exefile("#{bin_path}/#{bin}") - source_path = MRuby.targets['host'].exefile("#{MRuby.targets['host'].build_dir}/bin/#{bin}") - - file install_path => source_path do |t| - install_D t.prerequisites.first, t.name +if MRuby.targets['host'] + target = MRuby.targets['host'] + depfiles = target.bins.map do |bin| + install_path = target.exefile("#{bin_path}/#{bin}") + source_path = target.exefile("#{target.build_dir}/bin/#{bin}") + + file install_path => source_path do |t| + install_D t.prerequisites.first, t.name + end + install_path end - - install_path +else + depfiles = [] end MRuby.each_target do |target| |
