Add partslist.dk and partslist.mouser generation to Maekfile
authorKeith Packard <keithp@keithp.com>
Thu, 11 Jul 2013 05:07:59 +0000 (22:07 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 11 Jul 2013 05:07:59 +0000 (22:07 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
Makefile

index 35eff28e326d9f45995b20408a9dbe1ea6d831dc..631ec7e1d5dde358c30b11d79bf81dea50785125 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
 
@@ -20,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: