summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-02-11 08:01:17 +0100
committercremno <[email protected]>2014-02-12 00:04:42 +0100
commitd1f474c2398fec7374ffa66fa0cd308334e68d3f (patch)
treec78e0814195aa944bac1368b4c5e21717b283d35
parent27dbcd0f0d6f6144d5d59d215131bdbafda14f46 (diff)
downloadmruby-d1f474c2398fec7374ffa66fa0cd308334e68d3f.tar.gz
mruby-d1f474c2398fec7374ffa66fa0cd308334e68d3f.zip
Rakefile: make bin directory
-rw-r--r--Rakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 67aa64d4e..c7d70797e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -33,8 +33,11 @@ load "#{MRUBY_ROOT}/test/mrbtest.rake"
# generic build targets, rules
task :default => :all
+bin_path = "#{MRUBY_ROOT}/bin"
+FileUtils.mkdir_p bin_path, { :verbose => $verbose }
+
depfiles = MRuby.targets['host'].bins.map do |bin|
- install_path = MRuby.targets['host'].exefile("#{MRUBY_ROOT}/bin/#{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|