From 067650a6779b71aa3c5d924c862422738652d505 Mon Sep 17 00:00:00 2001 From: Kevin Redon Date: Wed, 2 Apr 2014 17:04:31 +0200 Subject: [PATCH] proper sch2pcb cleaning --- hardware/Rakefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"