1 # intentionally want to rebuild drc and bom on every invocation
2 all: drc partslist partslist.csv pcb
4 drc: telenano.sch Makefile
5 -gnetlist -g drc2 telenano.sch -o telenano.drc
7 partslist: telenano.sch Makefile
8 gnetlist -g bom -o telenano.unsorted telenano.sch
9 head -n1 telenano.unsorted > partslist
10 tail -n+2 telenano.unsorted | sort >> partslist
11 rm -f telenano.unsorted
13 partslist.csv: telenano.sch Makefile
14 gnetlist -g partslist4 -o telenano.unsorted telenano.sch
15 head -n1 telenano.unsorted > partslist.csv
16 tail -n+2 telenano.unsorted | sort -t \, -k 8 >> partslist.csv
17 rm -f telenano.unsorted
19 pcb: telenano.sch project Makefile
22 # note that 'gschlas -e foo.sch' will embed all symbols in the schematic, this
23 # might be a really good idea for publishing designs to the web that others
24 # might review? Like this example from DJ:
27 # for i in channel.sch ethernet.sch power.sch mcu.sch; do \
29 # gschlas -e tmp.sch ; \
30 # mv tmp.sch ${WEB}/$$i; \
33 # this shoves local work out to the git.gag.com repository
37 zip: telenano.back.gbr telenano.backmask.gbr telenano.fab.gbr telenano.front.gbr telenano.frontmask.gbr telenano.frontpaste.gbr telenano.frontsilk.gbr telenano.group2.gbr telenano.group3.gbr telenano.plated-drill.cnc telenano.xy Makefile # telenano.xls
38 zip telenano.zip telenano.*.gbr telenano.*.cnc telenano.xy # telenano.xls
41 rm -f *.bom *.drc *.log *~ telenano.ps *.gbr *.cnc *bak* *- *.zip
42 rm -f *.net *.xy *.cmd *.png partslist partslist.csv
43 rm -f *.partslist *.new.pcb *.unsorted telenano.xls