# intentionally want to rebuild drc and bom on every invocation all: drc partslist partslist.csv pcb drc: remoteimu.sch Makefile -gnetlist -g drc2 remoteimu.sch -o remoteimu.drc partslist: remoteimu.sch Makefile gnetlist -g bom -o remoteimu.unsorted remoteimu.sch head -n1 remoteimu.unsorted > partslist tail -n+2 remoteimu.unsorted | sort >> partslist rm -f remoteimu.unsorted partslist.csv: remoteimu.sch Makefile gnetlist -L ../altusmetrum/scheme -g partslistgag \ -o remoteimu.unsorted remoteimu.sch head -n1 remoteimu.unsorted > partslist.csv tail -n+2 remoteimu.unsorted | sort -t \, -k 8 >> partslist.csv rm -f remoteimu.unsorted pcb: remoteimu.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 remoteimu.xy: remoteimu.pcb pcb -x bom remoteimu.pcb remoteimu.bottom.gbr: remoteimu.pcb pcb -x gerber remoteimu.pcb zip: remoteimu.bottom.gbr remoteimu.bottommask.gbr remoteimu.fab.gbr remoteimu.top.gbr remoteimu.topmask.gbr remoteimu.toppaste.gbr remoteimu.topsilk.gbr remoteimu.plated-drill.cnc remoteimu.xy Makefile # remoteimu.xls zip remoteimu.zip remoteimu.*.gbr remoteimu.*.cnc remoteimu.xy # remoteimu.xls oshpark: remoteimu.bottom.gbr remoteimu.bottommask.gbr remoteimu.top.gbr remoteimu.topmask.gbr remoteimu.topsilk.gbr remoteimu.plated-drill.cnc mv remoteimu.bottom.gbr bottom\ layer.ger mv remoteimu.bottommask.gbr bottom\ solder\ mask.ger mv remoteimu.bottomsilk.gbr bottom\ silk\ screen.ger mv remoteimu.outline.gbr board\ outline.ger mv remoteimu.top.gbr top\ layer.ger mv remoteimu.topmask.gbr top\ solder\ mask.ger mv remoteimu.topsilk.gbr top\ silk\ screen.ger mv remoteimu.plated-drill.cnc drills.xln zip remoteimu-oshpark.zip *.ger *.xln stencil: remoteimu.toppaste.gbr remoteimu.outline.gbr zip remoteimu-stencil.zip remoteimu.toppaste.gbr remoteimu.outline.gbr clean: rm -f *.bom *.drc *.log *~ remoteimu.ps *.gbr *.cnc *bak* *- *.zip rm -f *.net *.xy *.cmd *.png partslist partslist.csv *.ger *.xln rm -f *.partslist *.new.pcb *.unsorted remoteimu.xls