Make assembly zip files depend on .xy file
authorKeith Packard <keithp@keithp.com>
Fri, 3 Mar 2017 15:48:56 +0000 (07:48 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 3 Mar 2017 15:51:40 +0000 (07:51 -0800)
There was a missing dependency, leading to a lack of component
positioning data in the files sent off to various assembly
houses. Adding these dependencies ensures that the files are built
(and rebuilt) as necessary.

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

diff --git a/pcb.mk b/pcb.mk
index b36d9d23468b85bdaebd0794bebc6b743019db6e..1ed68b22b214e02577b0ab439b41b62a1321e584 100644 (file)
--- a/pcb.mk
+++ b/pcb.mk
@@ -86,7 +86,7 @@ ac: $(PROJECT)-ac.zip $(PROJECT)-bom.csv
 $(PROJECT)-bom.csv: partslist.csv
        cp partslist.csv $@
 
-$(PROJECT)-ac.zip:  $(PROJECT).bottom.gbr
+$(PROJECT)-ac.zip:  $(PROJECT).bottom.gbr $(PROJECT).xy
        cp $(PROJECT).bottom.gbr $(PROJECT).gbl
        cp $(PROJECT).bottommask.gbr $(PROJECT).gbs
        if [ -f $(PROJECT).bottomsilk.gbr ]; then \
@@ -148,7 +148,7 @@ $(PROJECT)-oshpark.zip: $(PROJECT).bottom.gbr $(PROJECT).all-drill.cnc
 
 seeed: $(PROJECT)-seeed.zip $(PROJECT)-seeed.csv
 
-$(PROJECT)-seeed.zip: $(PROJECT).bottom.gbr $(PROJECT).all-drill.cnc $(PROJECT)-sch.pdf $(SEEED_EXTRA)
+$(PROJECT)-seeed.zip: $(PROJECT).bottom.gbr $(PROJECT).all-drill.cnc $(PROJECT)-sch.pdf $(PROJECT).xy $(SEEED_EXTRA)
        cp $(PROJECT).bottom.gbr $(PROJECT).gbl
        cp $(PROJECT).bottommask.gbr $(PROJECT).gbs
        if [ -f $(PROJECT).bottomsilk.gbr ]; then \
@@ -184,7 +184,7 @@ $(PROJECT)-seeed.zip: $(PROJECT).bottom.gbr $(PROJECT).all-drill.cnc $(PROJECT)-
 
 goldphoenix: $(PROJECT)-goldphoenix.zip
 
-$(PROJECT)-goldphoenix.zip: $(PROJECT).bottom.gbr $(PROJECT).all-drill.cnc $(PROJECT)-sch.pdf  $(PROJECT)-goldphoenix.csv
+$(PROJECT)-goldphoenix.zip: $(PROJECT).bottom.gbr $(PROJECT).all-drill.cnc $(PROJECT)-sch.pdf $(PROJECT).xy $(PROJECT)-goldphoenix.csv
        cp $(PROJECT).bottom.gbr $(PROJECT).gbl
        cp $(PROJECT).bottommask.gbr $(PROJECT).gbs
        if [ -f $(PROJECT).bottomsilk.gbr ]; then \
@@ -228,7 +228,7 @@ stencil:    $(PROJECT).pcb
 clean:
        rm -f *.bom *.drc *.log *~ $(PROJECT).ps *.gbr *.cnc *bak* *- *.zip 
        rm -f *.net *.xy *.cmd *.png partslist partslist.csv *.ger *.xln
-       rm -f *.partslist *.new.pcb *.unsorted $(PROJECT).xls muffin-5267.pdf
+       rm -f *.partslist *.new.pcb *.unsorted $(PROJECT).xls muffin-5267.pdf muffin-keithp.pdf
        rm -f partslist-check.dk partslist.dk partslist-mouser.csv partslist.other
        rm -f $(PROJECT)-sch.ps $(PROJECT)-sch.pdf $(PROJECT)-pcb.ps $(PROJECT)-pcb.pdf
        rm -f $(PROJECT).gbl $(PROJECT).gbs $(PROJECT).gbo $(PROJECT).gbp $(PROJECT).ncd