From: Pat Thoyts Date: Thu, 24 Nov 2016 21:17:47 +0000 (+0000) Subject: Use merge_drills to get non-plated holes included for SeeedStudio. X-Git-Url: https://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=fae12612f535b22d15e29367162eca0d8d37ee4d;p=electronics%2Flab-monitor Use merge_drills to get non-plated holes included for SeeedStudio. 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 --- diff --git a/Makefile b/Makefile index 62a6b48..87a8b4c 100644 --- 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