commit fb2a3905a3ead0cb68a1917008ba65397eeb6730
parent 5a2a2cd165f7bbe8d995e7a787c0039c930eecc9
Author: cfillion <cfillion@users.noreply.github.com>
Date: Fri, 18 Dec 2015 20:12:22 -0500
add a way to build for a single architecture using rake
...like we could before by running tup manually
Diffstat:
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/Rakefile b/Rakefile
@@ -1,13 +1,15 @@
-SOURCES = FileList['src/*.{h,c}pp']
-
task :default => [:prepare, :build]
task :prepare do
- ruby 'prepare.rb', *SOURCES, :verbose => false
+ sources = FileList['src/*.{h,c}pp']
+ ruby 'prepare.rb', *sources, :verbose => false
end
-task :build do
- sh 'tup', :verbose => false
+task :build, [:variants] do |_, args|
+ vars = Array(args[:variants]) + args.extras
+ vars.reject &:empty?
+
+ sh 'tup', *vars, :verbose => false
end
task :test do