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)
-rm $(NAME).bom
-rm $(NAME).new.pcb
-.PHONY: drc bom update clean gerber
+.PHONY: drc bom update clean gerber pdf