Use merge_drills to get non-plated holes included for SeeedStudio.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 24 Nov 2016 21:17:47 +0000 (21:17 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 24 Nov 2016 21:17:47 +0000 (21:17 +0000)
The NPTH holes are in a separate file but Seeed needs them all in one
file. This external script merges the two drill files into one.

Also included a makefile target to generate PDF schematics.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Makefile

index 62a6b483f804152b42ce8a00698b73e3780a7fd7..87a8b4ce228bd6fe16dfe0d0c85f02e459afeaa2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,23 +24,38 @@ drc: $(SCHEMAS)
 gerber_eagle: $(NAME)_eagle.zip
 gerber: $(NAME).zip
 
+# Use Hackvana style for SeeedStudio Fusion:
+#   Top Layer $(NAME).gtl
+#   Top Solder Mask: $(NAME).gts
+#   Top Silkscreen: $(NAME).gto
+#   Top solderpaste: $(NAME).gtp
+#   Bottom Layer $(NAME).gbl
+#   Bottom Solder Mask: $(NAME).gbs
+#   Bottom Silkscreen: $(NAME).gbo
+#   Drills: $(NAME).txt
+# They don't mention the outline layer but I get:
+#   Milling layer (outline): $(NAME).gm1
+#   Fabrication information: $(NAME).fab
+# and SeeedStudio appears to use this (at least the outline).
+#
 $(NAME).zip: $(NAME).pcb
        rm -f gerber/* $@
        mkdir -p gerber
        pcb -x gerber --gerberfile "gerber/$(NAME)" --name-style hackvana $(NAME).pcb
+       merge_drills.pl gerber/$(NAME)*.drl > gerber/$(NAME).txt
+       rm gerber/$(NAME)*.drl
        zip -j $@ gerber/*
 
-$(NAME)_eagle.zip: $(NAME).pcb
-       rm -f gerber_eagle/* $@
-       mkdir -p gerber_eagle
-       pcb -x gerber --gerberfile "gerber_eagle/$(NAME)" --name-style eagle $(NAME).pcb
-       zip -j $@ gerber_eagle/*
-
 render: $(NAME).png
 
 $(NAME).png: $(NAME).pcb
        pcbrender $^ $(NAME).png
 
+pdf:
+
+$(NAME).pdf: $(NAME).sch
+       gaf export --paper=iso_a4 --color --output=$@ $^
+
 check-names:
        @echo PROJECT $(PROJECT)
        @echo NAME $(NAME)
@@ -50,4 +65,4 @@ clean:
        -rm $(NAME).bom
        -rm $(NAME).new.pcb
 
-.PHONY: drc bom update clean gerber
+.PHONY: drc bom update clean gerber pdf