When creating partslists, use $(SCHEMATICS) instead of $(PROJECT).sch
authorKeith Packard <keithp@keithp.com>
Sun, 2 Apr 2017 00:07:10 +0000 (17:07 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 19 Apr 2017 22:30:38 +0000 (15:30 -0700)
Some projects have schematics split across multiple files.

Signed-off-by: Keith Packard <keithp@keithp.com>
pcb.mk

diff --git a/pcb.mk b/pcb.mk
index 1ed68b22b214e02577b0ab439b41b62a1321e584..a6eed432a6752eed5397fa730b039e67c2a13a95 100644 (file)
--- a/pcb.mk
+++ b/pcb.mk
@@ -24,7 +24,7 @@ $(PROJECT).drc: $(SCHEMATICS) Makefile $(CONFIG)
 
 partslists: partslist partslist.csv partslist.dk partslist-check.dk partslist-mouser.csv partslist.other
 
-partslist:     $(PROJECT).sch Makefile $(AM)/preferred-parts $(CONFIG)
+partslist:     $(SCHEMATICS) Makefile $(AM)/preferred-parts $(CONFIG)
        gnetlist -g bom -o $(PROJECT).unsorted $(SCHEMATICS)
        head -n1 $(PROJECT).unsorted > partslist
        tail -n+2 $(PROJECT).unsorted | sort | awk -f $(AM)/bin/fillpartslist >> partslist