NAME=lpc1343-breakout all: $(NAME).pdf $(NAME)-Front.pdf $(NAME)-Back.pdf kicad-check clean: rm -rf $(KICAD_TARGETS_CLEAN) # Generic PCBNEW ?= pcbnew PCBNEW_OPTS ?= --plot=ps --plot-fill-all-zones EESCHEMA ?= eeschema KICAD_TARGETS_CLEAN = $(NAME).erc $(NAME).rpt $(NAME)-schema.pdf $(NAME)-board-Front.pdf $(NAME)-board-Back.pdf kicad-check: $(NAME).erc $(NAME).rpt %.pdf: %.ps ps2pdf $< %-schema.ps: %.sch $(EESCHEMA) --plot=ps $< %-board-Front.ps: %.brd $(PCBNEW) $(PCBNEW_OPTS) --layers=Front --plot-mirror $< %-board-Back.ps: %.brd $(PCBNEW) $(PCBNEW_OPTS) --layers=Back $< %.erc: %.sch $(EESCHEMA) --erc $(NAME).sch %.rpt: %.brd $(EESCHEMA) --plot=ps $<