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