# intentionally want to rebuild drc and bom on every invocation all: drc partslist partslist.csv pcb drc: telepad.sch Makefile -gnetlist -g drc2 telepad.sch -o telepad.drc partslist: telepad.sch Makefile gnetlist -g bom -o telepad.unsorted telepad.sch head -n1 telepad.unsorted > partslist tail -n+2 telepad.unsorted | sort >> partslist rm -f telepad.unsorted partslist.csv: telepad.sch Makefile gnetlist -g partslist3 -o telepad.unsorted telepad.sch head -n1 telepad.unsorted > partslist.csv tail -n+2 telepad.unsorted | sort -t \, -k 8 >> partslist.csv rm -f telepad.unsorted pcb: telepad.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 telepad.xy: telepad.pcb pcb -x bom telepad.pcb telepad.back.gbr: telepad.pcb pcb -x gerber telepad.pcb zip: telepad.back.gbr telepad.backmask.gbr telepad.fab.gbr telepad.front.gbr telepad.frontmask.gbr telepad.frontpaste.gbr telepad.frontsilk.gbr telepad.plated-drill.cnc telepad.xy Makefile # telepad.xls zip telepad.zip telepad.*.gbr telepad.*.cnc telepad.xy # telepad.xls clean: rm -f *.bom *.drc *.log *~ telepad.ps *.gbr *.cnc *bak* *- *.zip rm -f *.net *.xy *.cmd *.png partslist partslist.csv rm -f *.partslist *.new.pcb *.unsorted telepad.xls