Added Makefile rule to generate gerber archive file.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 1 Oct 2015 20:16:48 +0000 (21:16 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 1 Oct 2015 20:16:48 +0000 (21:16 +0100)
Makefile

index b74294a548e2fd27f2a81e2d02945451304f4217..70d12856a79b745b76b4ed3af86d8e1732e54f07 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,14 @@ $(NAME).bom: $(SCHEMAS) attribs
 drc: $(SCHEMAS)
        gnetlist -g drc2 -o /dev/stdout $^
 
+gerber: $(NAME).zip
+
+$(NAME).zip: $(NAME).pcb
+       pcb -x gerber --gerberfile "gerber/$(NAME)" --name-style hackvana $(NAME).pcb
+       zip -j $@ gerber/*
+
 clean:
        -rm $(NAME).bom
        -rm $(NAME).new.pcb
 
-.PHONY: drc bom update clean
+.PHONY: drc bom update clean gerber