summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 135c7a6a2..cc6ded8d0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -75,6 +75,16 @@ MRuby.each_target do |target|
FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose }
end
depfiles += [ install_path ]
+ elsif target == MRuby.targets['host-debug']
+ unless MRuby.targets['host'].gems.map {|g| g.bins}.include?([bin])
+ install_path = MRuby.targets['host-debug'].exefile("#{MRUBY_ROOT}/bin/#{bin}")
+
+ file install_path => exec do |t|
+ FileUtils.rm_f t.name, { :verbose => $verbose }
+ FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose }
+ end
+ depfiles += [ install_path ]
+ end
else
depfiles += [ exec ]
end