From e5bacc03f20c3be5006f0283200b48a15ff699b7 Mon Sep 17 00:00:00 2001 From: mimaki Date: Tue, 18 Nov 2014 23:33:32 +0900 Subject: Add mruby debugger (mrdb) --- Rakefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Rakefile') 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 -- cgit v1.2.3