diff --git a/hardware/Rakefile b/hardware/Rakefile index 52811a4..3330d23 100644 --- a/hardware/Rakefile +++ b/hardware/Rakefile @@ -82,12 +82,14 @@ task :verify => vsch do |t| puts "not all refdes uniq" unless uniq puts "not all refdes numbered" unless numbered end +=end desc "convert schematic to pcb layout" -task :sch2pcb => vsch do |t| - sh "gsch2pcb #{t.prerequisites[0]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target}" +task :sch2pcb do + targets.each do |target| + sh "gsch2pcb #{target[:vsch]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target[:name]}" + end end -=end photos = targets.collect{|target| ["#{target[:name]}_layout-top.png","#{target[:name]}_layout-bottom.png"]}.flatten desc "render layout"