X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=05b807d40d0bbb6d6c6a29bb494e846b636dbfa4;hb=ee23d53725a842f2527d90729c0bb1885e4ffcfd;hp=44aa7ed0dd478822fdfc6b5dfaf7ed9f3619be5f;hpb=8eba9bc822f8d0963fb882a0c4c04f2d92333fc9;p=hw%2Ftelemetrum diff --git a/Makefile b/Makefile index 44aa7ed..05b807d 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,38 @@ +# intentionally want to rebuild drc and bom on every invocation all: drc bom -drc: beacon.sch - -gnetlist -g drc2 beacon.sch -o beacon.drc +drc: telemetrum.sch + -gnetlist -g drc2 telemetrum.sch -o telemetrum.drc -bom: beacon.sch - gnetlist -g bom -o beacon.bom beacon.sch +bom: telemetrum.sch + gnetlist -g bom -o telemetrum.unsorted telemetrum.sch + head -n1 telemetrum.unsorted > telemetrum.bom + tail -n+2 telemetrum.unsorted | sort >> telemetrum.bom + rm -f telemetrum.unsorted -pcb: beacon.sch project +pcb: telemetrum.sch project 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 + +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 *~ beacon.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd - rm -f *.partslist + rm -f *.bom *.drc *.log *~ telemetrum.ps *.gbr *.cnc *bak* *- *.zip + rm -f *.net *.xy *.cmd *.png + rm -f *.partslist *.new.pcb *.unsorted +