X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=1dd8f2f5583b872952c2a2218e78c54f448f9399;hb=44f19a02cb254e8b39cae9784e98f07f507119fa;hp=3cf628b5991fae95d42510ce9a098eb9b4bb9729;hpb=f4a7865b2c47dc8c9b3b54c34168b782087fd91a;p=hw%2Ftelemini diff --git a/Makefile b/Makefile index 3cf628b..1dd8f2f 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,26 @@ +AM=../altusmetrum +SCHEME=$(AM)/scheme + # intentionally want to rebuild drc and bom on every invocation all: drc partslist partslist.csv pcb -drc: telenanodd.sch Makefile - -gnetlist -g drc2 telenanodd.sch -o telenanodd.drc +drc: telemini.sch Makefile + -gnetlist -g drc2 telemini.sch -o telemini.drc -partslist: telenanodd.sch Makefile - gnetlist -g bom -o telenanodd.unsorted telenanodd.sch - head -n1 telenanodd.unsorted > partslist - tail -n+2 telenanodd.unsorted | sort >> partslist - rm -f telenanodd.unsorted +partslist: telemini.sch Makefile + gnetlist -g bom -o telemini.unsorted telemini.sch + head -n1 telemini.unsorted > partslist + tail -n+2 telemini.unsorted | sort >> partslist + rm -f telemini.unsorted -partslist.csv: telenanodd.sch Makefile - gnetlist -g partslist4 -o telenanodd.unsorted telenanodd.sch - head -n1 telenanodd.unsorted > partslist.csv - tail -n+2 telenanodd.unsorted | sort -t \, -k 8 >> partslist.csv - rm -f telenanodd.unsorted +partslist.csv: telemini.sch Makefile + gnetlist -L $(SCHEME) -g partslistgag \ + -o telemini.unsorted telemini.sch + head -n1 telemini.unsorted > partslist.csv + tail -n+2 telemini.unsorted | sort -t \, -k 8 >> partslist.csv + rm -f telemini.unsorted -pcb: telenanodd.sch project Makefile +pcb: telemini.sch project Makefile gsch2pcb project # note that 'gschlas -e foo.sch' will embed all symbols in the schematic, this @@ -34,11 +38,36 @@ pcb: telenanodd.sch project Makefile push: git push --mirror -zip: telenanodd.back.gbr telenanodd.backmask.gbr telenanodd.fab.gbr telenanodd.front.gbr telenanodd.frontmask.gbr telenanodd.frontpaste.gbr telenanodd.frontsilk.gbr telenanodd.group2.gbr telenanodd.group3.gbr telenanodd.plated-drill.cnc telenanodd.xy Makefile # telenanodd.xls - zip telenanodd.zip telenanodd.*.gbr telenanodd.*.cnc telenanodd.xy # telenanodd.xls +telemini.xy: telemini.pcb + pcb -x bom telemini.pcb + +telemini.bottom.gbr: telemini.pcb + pcb -x gerber telemini.pcb + +zip: telemini.bottom.gbr telemini.bottommask.gbr telemini.fab.gbr telemini.top.gbr telemini.topmask.gbr telemini.toppaste.gbr telemini.topsilk.gbr telemini.plated-drill.cnc telemini.xy Makefile # telemini.xls + zip telemini.zip telemini.*.gbr telemini.*.cnc telemini.xy # telemini.xls + +oshpark: telemini.bottom.gbr telemini.bottommask.gbr telemini.top.gbr telemini.topmask.gbr telemini.topsilk.gbr telemini.plated-drill.cnc + mv telemini.bottom.gbr bottom\ layer.ger + mv telemini.bottommask.gbr bottom\ solder\ mask.ger + mv telemini.bottomsilk.gbr bottom\ silk\ screen.ger + mv telemini.outline.gbr board\ outline.ger + mv telemini.top.gbr top\ layer.ger + mv telemini.topmask.gbr top\ solder\ mask.ger + mv telemini.topsilk.gbr top\ silk\ screen.ger + mv telemini.plated-drill.cnc drills.xln + zip telemini-oshpark.zip *.ger *.xln + +stencil: telemini.bottom.gbr telemini.toppaste.gbr telemini.outline.gbr + zip telemini-stencil.zip telemini.toppaste.gbr telemini.outline.gbr clean: - rm -f *.bom *.drc *.log *~ telenanodd.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png partslist partslist.csv - rm -f *.partslist *.new.pcb *.unsorted telenanodd.xls + rm -f *.bom *.drc *.log *~ telemini.ps *.gbr *.cnc *bak* *- *.zip + rm -f *.net *.xy *.cmd *.png partslist partslist.csv *.ger *.xln + rm -f *.partslist *.new.pcb *.unsorted telemini.xls muffin-5267.pdf + +muffins: partslist.csv $(AM)/glabels/muffin-short-5267.glabels + glabels-3-batch $(AM)/glabels/muffin-short-5267.glabels \ + -i partslist.csv -o muffin-5267.ps >/dev/null && \ + ps2pdf muffin-5267.ps && rm muffin-5267.ps