From 7d91ee60c6db132b78f70c643db2792cf86461a2 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 17 Jan 2011 22:35:55 -0300 Subject: [PATCH] atusb/Makefile: replaced board name by $(NAME) or pattern --- atusb/Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/atusb/Makefile b/atusb/Makefile index 0d0ee20..7df93bc 100644 --- a/atusb/Makefile +++ b/atusb/Makefile @@ -1,5 +1,7 @@ PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones +NAME = atusb + .PHONY: all gen generate sch brd xpdf front back clean all: @@ -7,22 +9,22 @@ all: @exit 1 gen generate: - eeschema --plot `pwd`/atusb.sch + eeschema --plot `pwd`/$(NAME).sch # need scripts sch: - eeschema `pwd`/atusb.sch + eeschema `pwd`/$(NAME).sch brd: - pcbnew `pwd`/atusb.brd + pcbnew `pwd`/$(NAME).brd xpdf: - xpdf atusb.pdf + xpdf $(NAME).pdf -front: atusb-Front.ps +front: $(NAME)-Front.ps lpr $< -back: atusb-Back.ps +back: $(NAME)-Back.ps lpr $< # @@ -36,12 +38,12 @@ back: atusb-Back.ps # larger (!) than designed. # -atusb-Front.ps: atusb.brd +%-Front.ps: %.brd $(PLOT_BRD) -l Front --mirror $< -atusb-Back.ps: atusb.brd +%-Back.ps: %.brd $(PLOT_BRD) -l Back $< clean: - rm -f atusb-Front.ps atusb-Back.ps - rm -f atusb.drl atusb-PCB_Edges.gbr + rm -f $(NAME)-Front.ps $(NAME)-Back.ps + rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr