X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=86bdbbb60821d311d515e06beda42e127bd1d652;hb=15f317345223f92f1022564df0994bd54938df66;hp=2a6c57fa75c325c84b269145784d8a463cc3e72d;hpb=64c1c37727357120c9379cb7b438e2dc915af54a;p=hw%2Ftelepyro diff --git a/Makefile b/Makefile index 2a6c57f..86bdbbb 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,19 @@ # intentionally want to rebuild drc and bom on every invocation -all: drc bom +all: drc partslist partslist.csv pcb drc: telepyro.sch -gnetlist -g drc2 telepyro.sch -o telepyro.drc -bom: telepyro.sch +partslist: telepyro.sch gnetlist -g bom -o telepyro.unsorted telepyro.sch - head -n1 telepyro.unsorted > telepyro.bom - tail -n+2 telepyro.unsorted | sort >> telepyro.bom + head -n1 telepyro.unsorted > partslist + 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 @@ -28,11 +34,17 @@ pcb: telepyro.sch project push: git push --mirror -zip: telepyro.back.gbr telepyro.backmask.gbr telepyro.fab.gbr telepyro.front.gbr telepyro.frontmask.gbr telepyro.frontpaste.gbr telepyro.frontsilk.gbr telepyro.group2.gbr telepyro.group3.gbr telepyro.plated-drill.cnc +telepyro.xy: telepyro.pcb + pcb -x bom telepyro.pcb + +telepyro.back.gbr: telepyro.pcb + pcb -x gerber telepyro.pcb + +zip: telepyro.back.gbr telepyro.backmask.gbr telepyro.fab.gbr telepyro.front.gbr telepyro.frontmask.gbr telepyro.frontpaste.gbr telepyro.frontsilk.gbr telepyro.plated-drill.cnc zip telepyro.zip *.gbr *.cnc clean: rm -f *.bom *.drc *.log *~ telepyro.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png + rm -f *.net *.xy *.cmd *.png partslist rm -f *.partslist *.new.pcb *.unsorted