diff --git a/hardware/Rakefile b/hardware/Rakefile index fdbdac9..1072281 100644 --- a/hardware/Rakefile +++ b/hardware/Rakefile @@ -96,8 +96,11 @@ task :sch2pcb do sh "gsch2pcb #{target[:sch]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target[:name]}" end end -CLOBBER.include("*.net") -CLOBBER.include("*.new.pcb") +targets.each do |target| + CLOBBER.include("#{target[:name]}.net") + CLOBBER.include("#{target[:name]}.cmd") + CLOBBER.include("#{target[:name]}.new.pcb") +end photos = targets.collect{|target| ["#{target[:name]}_layout-top.png","#{target[:name]}_layout-bottom.png"]}.flatten desc "render layout"