X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=46ee9ba35db9d9421ca19d34a1878a5bc7bf3f3f;hb=c4b50e0bd7505dc9dc063e31128593ff15a8d422;hp=3cf628b5991fae95d42510ce9a098eb9b4bb9729;hpb=f4a7865b2c47dc8c9b3b54c34168b782087fd91a;p=hw%2Ftelemini diff --git a/Makefile b/Makefile index 3cf628b..46ee9ba 100644 --- a/Makefile +++ b/Makefile @@ -1,44 +1,13 @@ -# intentionally want to rebuild drc and bom on every invocation -all: drc partslist partslist.csv pcb +# name of project, also used for PCB file +PROJECT=telemini -drc: telenanodd.sch Makefile - -gnetlist -g drc2 telenanodd.sch -o telenanodd.drc +# list of schematic files that make up this design +SCHEMATICS=telemini.sch -partslist: telenanodd.sch Makefile - gnetlist -g bom -o telenanodd.unsorted telenanodd.sch - head -n1 telenanodd.unsorted > partslist - tail -n+2 telenanodd.unsorted | sort >> partslist - rm -f telenanodd.unsorted +# number of PCB layers +LAYERS=4 -partslist.csv: telenanodd.sch Makefile - gnetlist -g partslist4 -o telenanodd.unsorted telenanodd.sch - head -n1 telenanodd.unsorted > partslist.csv - tail -n+2 telenanodd.unsorted | sort -t \, -k 8 >> partslist.csv - rm -f telenanodd.unsorted - -pcb: telenanodd.sch project Makefile - 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: telenanodd.back.gbr telenanodd.backmask.gbr telenanodd.fab.gbr telenanodd.front.gbr telenanodd.frontmask.gbr telenanodd.frontpaste.gbr telenanodd.frontsilk.gbr telenanodd.group2.gbr telenanodd.group3.gbr telenanodd.plated-drill.cnc telenanodd.xy Makefile # telenanodd.xls - zip telenanodd.zip telenanodd.*.gbr telenanodd.*.cnc telenanodd.xy # telenanodd.xls - -clean: - rm -f *.bom *.drc *.log *~ telenanodd.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png partslist partslist.csv - rm -f *.partslist *.new.pcb *.unsorted telenanodd.xls +# sides with silkscreen, can be none|top|bottom|both +SILK=both +include ../altusmetrum/pcb.mk