X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=85e8d1326adcf68715a4ebbf4a1aab01b328f2c9;hb=f68e1eb175fa90a617d0343aa0f1b186769d9b79;hp=e3afde2f66dc1c479d8c8f6d67529813c451e3c4;hpb=7e1f3861ef157e0d57bc338f2f2d17519c891d88;p=hw%2Ftelemetrum diff --git a/Makefile b/Makefile index e3afde2..85e8d13 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,44 @@ # intentionally want to rebuild drc and bom on every invocation -all: drc bom +all: drc partslist partslist.csv pcb -drc: telemetrum.sch +drc: telemetrum.sch Makefile -gnetlist -g drc2 telemetrum.sch -o telemetrum.drc -bom: telemetrum.sch +partslist: telemetrum.sch Makefile 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 +partslist.csv: telemetrum.sch Makefile + gnetlist -g partslist4 -o telemetrum.unsorted telemetrum.sch + head -n1 telemetrum.unsorted > partslist.csv + tail -n+2 telemetrum.unsorted | sort -t \, -k 8 >> partslist.csv + rm -f telemetrum.unsorted + +pcb: telemetrum.sch project Makefile gsch2pcb project -zip: telemetrum.plated-drill.cnc telemetrum.back.gbr telemetrum.front.gbr telemetrum.fab.gbr - zip telemetrum.zip telemetrum.plated-drill.cnc telemetrum.back.gbr telemetrum.front.gbr telemetrum.fab.gbr +# 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 telemetrum.xy Makefile + zip telemetrum.zip *.gbr *.cnc *.xy clean: rm -f *.bom *.drc *.log *~ telemetrum.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd + rm -f *.net *.xy *.cmd *.png partslist *.csv rm -f *.partslist *.new.pcb *.unsorted +