X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=ba09add5fc49006d32aa92911d49999e6bfcedfd;hb=refs%2Fheads%2Fbranch-1.0;hp=af4f956f35f03f2ba0da0586963fb7d5f2facfb7;hpb=8cfffbb79082e110086175ea240870a94655e7e1;p=hw%2Ftelebt diff --git a/Makefile b/Makefile index af4f956..ba09add 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,9 @@ +PROJECT=telebt +AM=../altusmetrum +SCHEME=$(AM)/scheme +NICKLE=$(AM)/nickle +RETAB=nickle $(NICKLE)/retab + # intentionally want to rebuild drc and bom on every invocation all: drc partslist partslist.csv pcb @@ -11,7 +17,8 @@ partslist: telebt.sch Makefile rm -f telebt.unsorted partslist.csv: telebt.sch Makefile - gnetlist -g partslistgag -o telebt.unsorted telebt.sch + 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 rm -f telebt.unsorted @@ -19,6 +26,12 @@ partslist.csv: telebt.sch Makefile pcb: telebt.sch project Makefile gsch2pcb project +partslist.dk: $(PROJECT).sch Makefile $(SCHEME)/gnet-partslist-bom.scm + gnetlist -L $(SCHEME) -g partslist-bom -Ovendor=digikey -o $@ $(PROJECT).sch + +partslist.mouser: $(PROJECT).sch Makefile $(SCHEME)/gnet-partslist-bom.scm + gnetlist -L $(SCHEME) -g partslist-bom -Ovendor=mouser -o $@ $(PROJECT).sch + # note that 'gschlas -e foo.sch' will embed all symbols in the schematic, this # might be a really good idea for publishing designs to the web that others # might review? Like this example from DJ: @@ -37,14 +50,25 @@ push: telebt.xy: telebt.pcb pcb -x bom telebt.pcb -telebt.back.gbr: telebt.pcb +telebt.bottom.gbr: telebt.pcb pcb -x gerber telebt.pcb -zip: telebt.back.gbr telebt.backmask.gbr telebt.fab.gbr telebt.front.gbr telebt.frontmask.gbr telebt.frontpaste.gbr telebt.frontsilk.gbr telebt.group2.gbr telebt.group3.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.bottompaste.gbr telebt.topsilk.gbr telebt.plated-drill.cnc telebt.xy Makefile # telebt.xls zip telebt.zip telebt.*.gbr telebt.*.cnc telebt.xy # telebt.xls +dorkbot: telebt.bottom.gbr telebt.bottommask.gbr telebt.top.gbr telebt.topmask.gbr telebt.topsilk.gbr telebt.plated-drill.cnc + mv telebt.bottom.gbr bottom\ layer.ger + mv telebt.bottommask.gbr bottom\ solder\ mask.ger + mv telebt.bottomsilk.gbr bottom\ silk\ screen.ger + mv telebt.outline.gbr board\ outline.ger + mv telebt.top.gbr top\ layer.ger + mv telebt.topmask.gbr top\ solder\ mask.ger + mv telebt.topsilk.gbr top\ silk\ screen.ger + mv telebt.plated-drill.cnc drills.xln + zip telebt-dorkbot.zip *.ger *.xln + clean: rm -f *.bom *.drc *.log *~ telebt.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png partslist partslist.csv - rm -f *.partslist *.new.pcb *.unsorted telebt.xls + rm -f *.net *.xy *.cmd *.png partslist partslist.csv partslist.dk partslist.mouser + rm -f *.partslist *.new.pcb *.unsorted telebt.xls *.ger *.xln