separate build targets

This commit is contained in:
Laurent Sansonetti
2011-12-03 17:05:38 +01:00
parent abf642f71c
commit a014c8604a

View File

@@ -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"