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