+PROJECT=telebt
+AM=../altusmetrum
+SCHEME=$(AM)/scheme
+NICKLE=$(AM)/nickle
+RETAB=nickle $(NICKLE)/retab
+
# intentionally want to rebuild drc and bom on every invocation
all: drc partslist partslist.csv pcb
rm -f telebt.unsorted
partslist.csv: telebt.sch Makefile
- gnetlist -g partslistgag -o telebt.unsorted telebt.sch
+ gnetlist -L ../altusmetrum/scheme -g partslistgag \
+ -o telebt.unsorted telebt.sch
head -n1 telebt.unsorted > partslist.csv
tail -n+2 telebt.unsorted | sort -t \, -k 8 >> partslist.csv
rm -f telebt.unsorted
pcb: telebt.sch project Makefile
gsch2pcb project
+partslist.dk: $(PROJECT).sch Makefile $(SCHEME)/gnet-partslist-bom.scm
+ gnetlist -L $(SCHEME) -g partslist-bom -Ovendor=digikey -o $@ $(PROJECT).sch
+
+partslist.mouser: $(PROJECT).sch Makefile $(SCHEME)/gnet-partslist-bom.scm
+ gnetlist -L $(SCHEME) -g partslist-bom -Ovendor=mouser -o $@ $(PROJECT).sch
+
# 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:
clean:
rm -f *.bom *.drc *.log *~ telebt.ps *.gbr *.cnc *bak* *- *.zip
- rm -f *.net *.xy *.cmd *.png partslist partslist.csv
+ rm -f *.net *.xy *.cmd *.png partslist partslist.csv partslist.dk partslist.mouser
rm -f *.partslist *.new.pcb *.unsorted telebt.xls *.ger *.xln