mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-07 17:47:52 +08:00
separate build targets
This commit is contained in:
18
Rakefile
18
Rakefile
@@ -27,20 +27,28 @@ targets = %w{vm bin lib data doc}
|
||||
|
||||
task :default => :all
|
||||
desc "Build everything"
|
||||
task :all => targets
|
||||
task :all => :build
|
||||
|
||||
targets.each do |target|
|
||||
desc "Build target #{target}"
|
||||
task target do
|
||||
task "build:#{target}" do
|
||||
rake(target)
|
||||
end
|
||||
end
|
||||
|
||||
desc "Clean all targets"
|
||||
task :clean do
|
||||
targets.each { |target| rake(target, 'clean') }
|
||||
desc "Build all targets"
|
||||
task :build => targets.map { |x| "build:#{x}" }
|
||||
|
||||
targets.each do |target|
|
||||
desc "Clean target #{target}"
|
||||
task "clean:#{target}" do
|
||||
rake(target, 'clean')
|
||||
end
|
||||
end
|
||||
|
||||
desc "Clean all targets"
|
||||
task :clean => targets.map { |x| "clean:#{x}" }
|
||||
|
||||
desc "Generate source code archive"
|
||||
task :archive do
|
||||
base = "rubymotion-head"
|
||||
|
||||
Reference in New Issue
Block a user