# intentionally want to rebuild drc and bom on every invocation
-all: drc partslist
+all: drc partslist partslist.csv pcb
drc: telepyro.sch
-gnetlist -g drc2 telepyro.sch -o telepyro.drc
tail -n+2 telepyro.unsorted | sort >> partslist
rm -f telepyro.unsorted
+partslist.csv: telepyro.sch Makefile
+ gnetlist -g partslist4 -o telepyro.unsorted telepyro.sch
+ head -n1 telepyro.unsorted > partslist.csv
+ tail -n+2 telepyro.unsorted | sort -t \, -k 8 >> partslist.csv
+ rm -f telepyro.unsorted
+
pcb: telepyro.sch project
gsch2pcb project