update pcb to reflect removal of flash part from design
[hw/telebt] / Makefile
index c1765f70b1fa43465d68522b1b8f31d88f14392f..ba09add5fc49006d32aa92911d49999e6bfcedfd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+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
 
@@ -11,7 +17,8 @@ partslist:    telebt.sch Makefile
        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
@@ -19,6 +26,12 @@ partslist.csv:       telebt.sch Makefile
 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:
@@ -56,6 +69,6 @@ dorkbot: telebt.bottom.gbr telebt.bottommask.gbr telebt.top.gbr telebt.topmask.g
 
 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