summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorHiroshi Mimaki <[email protected]>2014-11-19 09:02:10 +0900
committerHiroshi Mimaki <[email protected]>2014-11-19 09:02:10 +0900
commit4e4bfb08cbbc0198d1489004f807ba6a75469f16 (patch)
treec079d5715e1942db88e9ca6472223acc73ac7059 /Rakefile
parent5c6d6309b6b5e01ef3ff38f772e0fdd3fc5dd372 (diff)
parentb473043acfd1b4697e978e3ac4656dc9b03b3b22 (diff)
downloadmruby-4e4bfb08cbbc0198d1489004f807ba6a75469f16.tar.gz
mruby-4e4bfb08cbbc0198d1489004f807ba6a75469f16.zip
Merge pull request #2640 from mruby-Forum/v1.1.01.1.0
mruby-1.1.0
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