summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-12 09:28:50 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-12 09:28:50 +0900
commit4558b29719c119ffd9aa71dfa42fee72bf7e1db1 (patch)
tree779eda6502e79c3ab59757b1c652d9be41cc32d4
parent67d63387ee941601ae42d379bbccadb176ccd513 (diff)
parentd1f474c2398fec7374ffa66fa0cd308334e68d3f (diff)
downloadmruby-4558b29719c119ffd9aa71dfa42fee72bf7e1db1.tar.gz
mruby-4558b29719c119ffd9aa71dfa42fee72bf7e1db1.zip
Merge pull request #1694 from cremno/rakefile-mkdir-bin-path
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|