X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=6b7956786b4bad588412e9aa6d7e634330a20f9d;hb=56fdab8ec45fff19c4de6727a27ab9c82af82727;hp=523442abc1d1993039e2dbd7256051ffffdec5b4;hpb=5eade1261d9eec6c07bd565fe71f83e8ac3f12b9;p=hw%2Ftelemetrum diff --git a/Makefile b/Makefile index 523442a..6b79567 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,50 @@ -all: drc bom +# intentionally want to rebuild drc and bom on every invocation +all: drc partslist partslist.csv pcb -drc: beacon.sch - -gnetlist -g drc2 beacon.sch -o beacon.drc +drc: telemetrum.sch Makefile + -gnetlist -g drc2 telemetrum.sch -o telemetrum.drc -bom: beacon.sch - gnetlist -g bom -o beacon.bom beacon.sch +partslist: telemetrum.sch Makefile + gnetlist -g bom -o telemetrum.unsorted telemetrum.sch + head -n1 telemetrum.unsorted > partslist + tail -n+2 telemetrum.unsorted | sort >> partslist + rm -f telemetrum.unsorted -pcb: beacon.sch project +partslist.csv: telemetrum.sch Makefile + gnetlist -g partslistgag -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: beacon.plated-drill.cnc beacon.back.gbr beacon.front.gbr beacon.fab.gbr - zip beacon.zip beacon.plated-drill.cnc beacon.back.gbr beacon.front.gbr beacon.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 + +telemetrum.xy: telemetrum.pcb + pcb -x bom telemetrum.pcb + +telemetrum.back.gbr: telemetrum.pcb + pcb -x gerber telemetrum.pcb + +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 # telemetrum.xls + zip telemetrum.zip telemetrum.*.gbr telemetrum.*.cnc telemetrum.xy # telemetrum.xls clean: - rm -f *.bom *.drc *.log *~ beacon.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd - rm -f *.partslist *.new.pcb + rm -f *.bom *.drc *.log *~ telemetrum.ps *.gbr *.cnc *bak* *- *.zip + rm -f *.net *.xy *.cmd *.png partslist partslist.csv + rm -f *.partslist *.new.pcb *.unsorted telemetrum.xls +