X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=028d46216108a1f319eadae2e4a95ae290162949;hb=c029f0b800c711a65086bdd911bbc8a4a773cb30;hp=e7fed6d3a5139fa9d2fa280859e8cd188641049d;hpb=5d761f42a3ff7dd26ab8834e64595b619b1b2bf7;p=hw%2Ftelemetrum diff --git a/Makefile b/Makefile index e7fed6d..028d462 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,38 @@ # intentionally want to rebuild drc and bom on every invocation -all: drc bom +all: drc partslist pcb drc: telemetrum.sch -gnetlist -g drc2 telemetrum.sch -o telemetrum.drc -bom: telemetrum.sch +partslist: telemetrum.sch gnetlist -g bom -o telemetrum.unsorted telemetrum.sch - head -n1 telemetrum.unsorted > telemetrum.bom - tail -n+2 telemetrum.unsorted | sort >> telemetrum.bom + head -n1 telemetrum.unsorted > partslist + tail -n+2 telemetrum.unsorted | sort >> partslist rm -f telemetrum.unsorted pcb: telemetrum.sch project gsch2pcb project +# 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 + zip: telemetrum.back.gbr telemetrum.backmask.gbr telemetrum.fab.gbr telemetrum.front.gbr telemetrum.frontmask.gbr telemetrum.frontpaste.gbr telemetrum.frontsilk.gbr telemetrum.group2.gbr telemetrum.group3.gbr telemetrum.plated-drill.cnc zip telemetrum.zip *.gbr *.cnc clean: rm -f *.bom *.drc *.log *~ telemetrum.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png + rm -f *.net *.xy *.cmd *.png partslist rm -f *.partslist *.new.pcb *.unsorted