X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=be7c52504eee248ddd6062604044c4782a1d9848;hb=refs%2Fheads%2Fstm32f042;hp=5e65255342cfb92169f09f37f4f0cdf2cf53b518;hpb=30ccb56a48a4e9f8285baac0a04c260fafa144ae;p=hw%2Fteledongle diff --git a/Makefile b/Makefile index 5e65255..be7c525 100644 --- a/Makefile +++ b/Makefile @@ -1,45 +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=teledongle -drc: teledongle.sch - -gnetlist -g drc2 teledongle.sch -o teledongle.drc +# list of schematic files that make up this design +SCHEMATICS=teledongle.sch -partslist: teledongle.sch - gnetlist -g bom -o teledongle.unsorted teledongle.sch - head -n1 teledongle.unsorted > partslist - tail -n+2 teledongle.unsorted | sort >> partslist - rm -f teledongle.unsorted +# number of PCB layers +LAYERS=4 -partslist.csv: teledongle.sch Makefile - gnetlist -L scheme -g partslistgag - -o teledongle.unsorted teledongle.sch - head -n1 teledongle.unsorted > partslist.csv - tail -n+2 teledongle.unsorted | sort -t \, -k 8 >> partslist.csv - rm -f teledongle.unsorted - -pcb: teledongle.sch project - 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: teledongle.back.gbr teledongle.backmask.gbr teledongle.fab.gbr teledongle.front.gbr teledongle.frontmask.gbr teledongle.frontpaste.gbr teledongle.frontsilk.gbr teledongle.outline.gbr teledongle.plated-drill.cnc teledongle.xy - zip teledongle.zip teledongle.*.gbr teledongle.*.cnc teledongle.xy - -clean: - rm -f *.bom *.drc *.log *~ teledongle.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png partslist partslist.csv - rm -f *.partslist *.new.pcb *.unsorted teledongle.xy +# sides with silkscreen, can be none|top|bottom|both +SILK=both +include ../altusmetrum/pcb.mk