add more attributes, elide 'unknown' in partslist.csv
[hw/telebt] / Makefile
index da4550c629e897446342b99e439897a7c0473ed7..e35e1e2128d2910fe5f70f8570ef55db3446d0ab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ partslist.csv:        telebt.sch Makefile
        gnetlist -L ../altusmetrum/scheme -g partslistgag \
                -o telebt.unsorted telebt.sch
        head -n1 telebt.unsorted > partslist.csv
-       tail -n+2 telebt.unsorted | sort -t \, -k 8 >> partslist.csv
+       tail -n+2 telebt.unsorted | sed -e 's/unknown//g' | sort -t \, -k 8 >> partslist.csv
        rm -f telebt.unsorted
 
 pcb:   telebt.sch project Makefile
@@ -53,7 +53,7 @@ telebt.xy:    telebt.pcb
 telebt.bottom.gbr:     telebt.pcb
        pcb -x gerber telebt.pcb
 
-zip:   telebt.bottom.gbr telebt.bottommask.gbr telebt.fab.gbr telebt.top.gbr telebt.topmask.gbr telebt.bottompaste.gbr telebt.topsilk.gbr telebt.plated-drill.cnc telebt.xy  Makefile # telebt.xls
+zip:   telebt.bottom.gbr telebt.bottommask.gbr telebt.fab.gbr telebt.top.gbr telebt.topmask.gbr telebt.toppaste.gbr telebt.topsilk.gbr telebt.plated-drill.cnc telebt.xy  Makefile # telebt.xls
        zip telebt.zip telebt.*.gbr telebt.*.cnc telebt.xy # telebt.xls
 
 oshpark: $(PROJECT).bottom.gbr $(PROJECT).bottommask.gbr $(PROJECT).top.gbr $(PROJECT).topmask.gbr $(PROJECT).topsilk.gbr $(PROJECT).plated-drill.cnc
@@ -69,6 +69,15 @@ oshpark: $(PROJECT).bottom.gbr $(PROJECT).bottommask.gbr $(PROJECT).top.gbr $(PR
        mv $(PROJECT).group3.gbr internal\ plane\ 2.ger
        zip $(PROJECT)-oshpark.zip *.ger *.xln
 
+muffins: partslist.csv $(AM)/glabels/muffin-5267.glabels
+       glabels-3-batch $(AM)/glabels/muffin-5267.glabels \
+               -i partslist.csv -o muffin-5267.ps >/dev/null && \
+               ps2pdf muffin-5267.ps && rm muffin-5267.ps
+
+stencil:       $(PROJECT).pcb
+       pcb -x gerber --paste-adjust -0.075 $(PROJECT).pcb
+       mv $(PROJECT).toppaste.gbr stencil.gbr
+
 clean:
        rm -f *.bom *.drc *.log *~ telebt.ps *.gbr *.cnc *bak* *- *.zip 
        rm -f *.net *.xy *.cmd *.png partslist partslist.csv partslist.dk partslist.mouser