Rakefile: fix various targets

This commit is contained in:
King Kévin 2019-12-17 16:02:10 +01:00
parent bbc7bef8aa
commit e527eee164
1 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ qeda = "../qeda/bin/qeda"
# ==========
desc "main building task"
task :default => [:print, :fabrication]
task :default => [:print, :fabrication, :bom]
desc "print schematic and layout (as pdf)"
prints = [ "#{name}.sch.pdf", "#{name}.brd.ps", "#{name}.brd-top.png", "#{name}.brd-bottom.png" ]
@ -118,7 +118,7 @@ CLOBBER.include(boms)
# ===============
desc "generate schematic with version information all symbols embedded"
rule ".standalone.sch" => ".sch" do |t|
rule ".versioned.sch" => ".sch" do |t|
sh "cp #{t.source} #{t.name}"
sh "lepton-embed --embed #{t.name} 2> /dev/null"
sh "sed --in-place 's/\\$version\\$/#{version}/' #{t.name}"
@ -155,8 +155,8 @@ rule ".brd-bottom.png" => ".versioned.lht" do |t|
end
desc "archive gerbers"
rule ".brd.zip" => ".version.lht" do |t|
base = File.basename(t.source, ".lht")
rule ".brd.zip" => ".versioned.lht" do |t|
base = File.basename(t.source, ".versoined.lht")
sh "pcb-rnd -x cam gerber:JLC_PCB --outfile #{base}.brd #{t.source} 2> /dev/null"
gerbers = [ "#{base}.brd.asb", "#{base}.brd.ast", "#{base}.brd.gbl", "#{base}.brd.gbo", "#{base}.brd.gbp", "#{base}.brd.gbs", "#{base}.brd.gko", "#{base}.brd.gtl", "#{base}.brd.gto", "#{base}.brd.gtp", "#{base}.brd.gts", "#{base}.brd.xln" ]
fab = [ "#{name}.brd.zip" ]