# intentionally want to rebuild drc and bom on every invocation all: hw hw: drc partslist CC= sdcc CFLAGS= -mpic14 -p16f886 LDFLAGS= drc: teleterra.sch -gnetlist -g drc2 teleterra.sch -o teleterra.drc partslist: teleterra.sch gnetlist -g bom -o teleterra.unsorted teleterra.sch head -n1 teleterra.unsorted > partslist tail -n+2 teleterra.unsorted | sort >> partslist rm -f teleterra.unsorted pcb: teleterra.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 teleterra.xy: teleterra.pcb pcb -x bom teleterra.pcb teleterra.back.gbr: teleterra.pcb pcb -x gerber teleterra.pcb zip: teleterra.back.gbr teleterra.backmask.gbr teleterra.fab.gbr teleterra.front.gbr teleterra.frontmask.gbr teleterra.frontpaste.gbr teleterra.frontsilk.gbr teleterra.plated-drill.cnc zip teleterra.zip *.gbr *.cnc clean: rm -f *.bom *.drc *.log *~ teleterra.ps *.gbr *.cnc *bak* *- *.zip rm -f *.net *.xy *.cmd *.png partslist rm -f *.partslist *.new.pcb *.unsorted rm -f *.hex *.cod *.lst *.ps *.o *.asm