X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=a27e22c493659e8e5fafe9ae8d5d8e26c1556f33;hb=8df7317d9cd2416414f0affcaccc4193b1600974;hp=71362fb1f7682a139734673b4a0744ed45eeb782;hpb=e43fd20076f9bd27267494a25dc57a8607350f60;p=hw%2Ftelegps diff --git a/Makefile b/Makefile index 71362fb..a27e22c 100644 --- a/Makefile +++ b/Makefile @@ -1,60 +1,13 @@ +# name of project, also used for PCB file PROJECT=telegps -# intentionally want to rebuild drc and bom on every invocation -all: drc pcb partslist partslist.csv partslist.dk zip +# list of schematic files that make up this design +SCHEMATICS=telegps.sch -drc: $(PROJECT).sch Makefile - -gnetlist -g drc2 $(PROJECT).sch -o $(PROJECT).drc +# number of PCB layers +LAYERS=4 -partslist: $(PROJECT).sch Makefile - gnetlist -g bom -o $(PROJECT)-bom.unsorted $(PROJECT).sch - (head -n1 $(PROJECT)-bom.unsorted && tail -n+2 $(PROJECT)-bom.unsorted | sort) | nickle ./retab > partslist - rm -f $(PROJECT)-bom.unsorted +# sides with silkscreen, can be none|top|bottom|both +SILK=bottom -partslist.csv: $(PROJECT).sch Makefile gnet-partslist-csv.scm - gnetlist -l gnet-partslist-csv.scm -g partslist-csv -o $@ $(PROJECT).sch - -partslist.dk: $(PROJECT).sch Makefile gnet-partslist-bom.scm - gnetlist -m ./gnet-partslist-bom.scm -g partslist-bom -Ovendor=digikey -o $@ $(PROJECT).sch - -partslist.pdf: partslist.csv smt-labels.glabels - glabels-3-batch smt-labels.glabels -i partslist.csv -o partslist.ps && ps2pdf partslist.ps - -pcb: $(PROJECT).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 - -$(PROJECT).xy: $(PROJECT).pcb - pcb -x bom $(PROJECT).pcb - -GERB_FILES=*.cmp *.crc *.drd *.fab *.ly* *.oln *.plc *.pls *.sol *.stc *.sts - -$(PROJECT).gerb: $(PROJECT).pcb - rm -f $(GERB_FILES) - pcb -x gerber --name-style eagle $(PROJECT).pcb - touch $@ - -zip: $(PROJECT).zip - -$(PROJECT).zip: $(PROJECT).gerb $(PROJECT).xy - rm -f $(PROJECT).zip - zip $(PROJECT).zip $(GERB_FILES) - -clean: - rm -f *.bom *.drc *.log *~ $(PROJECT).ps $(GERB_FILES) $(PROJECT).gerb *bak* *- *.zip - rm -f *.net *.cmd *.png partslist partslist.csv - rm -f *.partslist *.new.pcb *.unsorted $(PROJECT).xls +include ../altusmetrum/pcb.mk