mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
18 lines
609 B
Ruby
18 lines
609 B
Ruby
desc "install compiled products"
|
|
task :install => :install_bin do
|
|
if host = MRuby.targets['host']
|
|
Dir.glob(File.join(host.build_dir, "{include,lib}/**/*")) do |path|
|
|
install_D path, File.join(MRuby::INSTALL_PREFIX, path.relative_path_from(host.build_dir)) if File.file? path
|
|
end
|
|
end
|
|
end
|
|
|
|
desc "install compiled executable (on host)"
|
|
task :install_bin => :all do
|
|
if host = MRuby.targets['host']
|
|
Dir.glob(File.join(host.build_dir, "bin/**/*")) do |path|
|
|
install_D path, File.join(MRuby::INSTALL_PREFIX, path.relative_path_from(host.build_dir)) if File.file? path
|
|
end
|
|
end
|
|
end
|