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