# intentionally want to rebuild drc and bom on every invocation all: drc partslist partslist.csv pcb drc: megadongle.sch -gnetlist -g drc2 megadongle.sch -o megadongle.drc partslist: megadongle.sch Makefile gnetlist -g bom -o megadongle.unsorted megadongle.sch head -n1 megadongle.unsorted > partslist tail -n+2 megadongle.unsorted | sort >> partslist rm -f megadongle.unsorted partslist.csv: megadongle.sch Makefile gnetlist -g partslist4 -o megadongle.unsorted megadongle.sch head -n1 megadongle.unsorted > partslist.csv tail -n+2 megadongle.unsorted | sort -t \, -k 8 >> partslist.csv rm -f megadongle.unsorted pcb: megadongle.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 megadongle.xy: megadongle.pcb pcb -x bom megadongle.pcb megadongle.bottom.gbr: megadongle.pcb pcb -x gerber megadongle.pcb zip: megadongle.bottom.gbr megadongle.bottommask.gbr megadongle.fab.gbr megadongle.top.gbr megadongle.topmask.gbr megadongle.toppaste.gbr megadongle.topsilk.gbr megadongle.plated-drill.cnc zip megadongle.zip *.gbr *.cnc clean: rm -f *.bom *.drc *.log *~ megadongle.ps *.gbr *.cnc *bak* *- *.zip rm -f *.net *.xy *.cmd *.png rm -f partslist* *.new.pcb *.unsorted