X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=ba4c81393e9c2e50bd12cf5f12fac75ef719cc97;hb=b62d06299e07ad3dd68bc5f2397e8199c175330e;hp=631ec7e1d5dde358c30b11d79bf81dea50785125;hpb=b3651454deb58e0aa65e62d292a64beb6ad06755;p=hw%2Ftelebt diff --git a/Makefile b/Makefile index 631ec7e..ba4c813 100644 --- a/Makefile +++ b/Makefile @@ -1,74 +1,4 @@ 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 - -drc: telebt.sch Makefile - -gnetlist -g drc2 telebt.sch -o telebt.drc - -partslist: telebt.sch Makefile - gnetlist -g bom -o telebt.unsorted telebt.sch - head -n1 telebt.unsorted > partslist - tail -n+2 telebt.unsorted | sort >> partslist - rm -f telebt.unsorted - -partslist.csv: telebt.sch Makefile - 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 - -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: -# -#web : -# for i in channel.sch ethernet.sch power.sch mcu.sch; do \ -# cp $$i tmp.sch ; \ -# gschlas -e tmp.sch ; \ -# mv tmp.sch ${WEB}/$$i; \ -# done - -# this shoves local work out to the git.gag.com repository -push: - git push --mirror - -telebt.xy: telebt.pcb - pcb -x bom telebt.pcb - -telebt.bottom.gbr: telebt.pcb - pcb -x gerber telebt.pcb - -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 *.ger *.xln +SCHEMATICS=telebt.sch +include ../altusmetrum/pcb-rnd.mk