# intentionally want to rebuild drc and bom on every invocation
-all: drc partslist
+all: drc partslist partslist.csv pcb
drc: telescience.sch
-gnetlist -g drc2 telescience.sch -o telescience.drc
-partslist: telescience.sch
+partslist: telescience.sch Makefile
gnetlist -g bom -o telescience.unsorted telescience.sch
head -n1 telescience.unsorted > partslist
tail -n+2 telescience.unsorted | sort >> partslist
rm -f telescience.unsorted
+partslist.csv: telescience.sch Makefile
+ gnetlist -L scheme -g partslistgag \
+ -o telescience.unsorted telescience.sch
+ head -n1 telescience.unsorted > partslist.csv
+ tail -n+2 telescience.unsorted | sort -t \, -k 8 >> partslist.csv
+ rm -f telescience.unsorted
+
pcb: telescience.sch project
gsch2pcb project
push:
git push --mirror
-zip: telescience.back.gbr telescience.backmask.gbr telescience.fab.gbr telescience.front.gbr telescience.frontmask.gbr telescience.frontpaste.gbr telescience.frontsilk.gbr telescience.group2.gbr telescience.group3.gbr telescience.plated-drill.cnc
+telescience.xy: telescience.pcb
+ pcb -x bom telescience.pcb
+
+telescience.bottom.gbr: telescience.pcb
+ pcb -x gerber telescience.pcb
+
+zip: telescience.bottom.gbr telescience.bottommask.gbr telescience.fab.gbr telescience.top.gbr telescience.topmask.gbr telescience.toppaste.gbr telescience.topsilk.gbr telescience.plated-drill.cnc
zip telescience.zip *.gbr *.cnc
+oshpark: telescience.bottom.gbr telescience.bottommask.gbr telescience.top.gbr telescience.topmask.gbr telescience.topsilk.gbr telescience.plated-drill.cnc
+ mv telescience.bottom.gbr bottom\ layer.ger
+ mv telescience.bottommask.gbr bottom\ solder\ mask.ger
+ mv telescience.bottomsilk.gbr bottom\ silk\ screen.ger
+ mv telescience.outline.gbr board\ outline.ger
+ mv telescience.top.gbr top\ layer.ger
+ mv telescience.topmask.gbr top\ solder\ mask.ger
+ mv telescience.topsilk.gbr top\ silk\ screen.ger
+ mv telescience.plated-drill.cnc drills.xln
+ mv telescience.group2.gbr internal\ plane\ 1.ger
+ mv telescience.group3.gbr internal\ plane\ 2.ger
+ zip telescience-oshpark.zip *.ger *.xln
+
clean:
rm -f *.bom *.drc *.log *~ telescience.ps *.gbr *.cnc *bak* *- *.zip
- rm -f *.net *.xy *.cmd *.png partslist
+ rm -f *.net *.xy *.cmd *.png partslist partslist.csv *.ger *.xln
rm -f *.partslist *.new.pcb *.unsorted