diff options
| author | Masaki Muranaka <[email protected]> | 2013-04-11 12:53:54 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-04-11 12:53:54 +0900 |
| commit | 9cf7d54b5713c9471dffc08c4dcb6396084f12d0 (patch) | |
| tree | edbdfebe2e9a330c250152929a545a20f6d8ff95 /Rakefile | |
| parent | 1b4ad941b4c715087f98ee15c4949898c25d00eb (diff) | |
| download | mruby-9cf7d54b5713c9471dffc08c4dcb6396084f12d0.tar.gz mruby-9cf7d54b5713c9471dffc08c4dcb6396084f12d0.zip | |
Move apps in gems to #{MRUBY_ROOT}/bin/ when apps is built for "host".
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -47,7 +47,7 @@ depfiles = MRuby.targets['host'].bins.map do |bin| install_path end -MRuby.each_target do +MRuby.each_target do |target| gems.map do |gem| current_dir = gem.dir.relative_path_from(Dir.pwd) relative_from_root = gem.dir.relative_path_from(MRUBY_ROOT) @@ -66,7 +66,17 @@ MRuby.each_target do linker.run t.name, t.prerequisites, gem_libraries, gem_library_paths, gem_flags, gem_flags_before_libraries end - depfiles += [ exec ] + if target == MRuby.targets['host'] + install_path = MRuby.targets['host'].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 ] + else + depfiles += [ exec ] + end end end end |
