1 # intentionally want to rebuild drc and bom on every invocation
4 hw: drc partslist partslist.csv
7 CFLAGS= -mpic14 -p16f886
11 -gnetlist -g drc2 teleterra.sch -o teleterra.drc
13 partslist: teleterra.sch
14 gnetlist -g bom -o teleterra.unsorted teleterra.sch
15 head -n1 teleterra.unsorted > partslist
16 tail -n+2 teleterra.unsorted | sort >> partslist
17 rm -f teleterra.unsorted
19 partslist.csv: teleterra.sch Makefile
20 gnetlist -g partslist4 -o teleterra.unsorted teleterra.sch
21 head -n1 teleterra.unsorted > partslist.csv
22 tail -n+2 teleterra.unsorted | sort -t \, -k 8 >> partslist.csv
23 rm -f teleterra.unsorted
25 pcb: teleterra.sch project
28 # note that 'gschlas -e foo.sch' will embed all symbols in the schematic, this
29 # might be a really good idea for publishing designs to the web that others
30 # might review? Like this example from DJ:
33 # for i in channel.sch ethernet.sch power.sch mcu.sch; do \
35 # gschlas -e tmp.sch ; \
36 # mv tmp.sch ${WEB}/$$i; \
39 # this shoves local work out to the git.gag.com repository
43 teleterra.xy: teleterra.pcb
44 pcb -x bom teleterra.pcb
46 teleterra.bottom.gbr: teleterra.pcb
47 pcb -x gerber teleterra.pcb
49 zip: teleterra.bottom.gbr teleterra.bottommask.gbr teleterra.fab.gbr teleterra.top.gbr teleterra.topmask.gbr teleterra.toppaste.gbr teleterra.topsilk.gbr teleterra.plated-drill.cnc
50 zip teleterra.zip *.gbr *.cnc
53 rm -f *.bom *.drc *.log *~ teleterra.ps *.gbr *.cnc *bak* *- *.zip
54 rm -f *.net *.xy *.cmd *.png partslist partslist.csv
55 rm -f *.partslist *.new.pcb *.unsorted
56 rm -f *.hex *.cod *.lst *.ps *.o *.asm