summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-08-20 15:55:06 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-08-20 15:55:06 +0200
commitb228d0d5a0a8b4386256201d2533c6b61577b6af (patch)
tree0a7d28bae27f677bf9b448a13eb08d5a2d071cdf /Makefile
parentbfeb09aef5d427edf4ea4e70e67b0eda7e4249f0 (diff)
downloadlpc1343-breakout-b228d0d5a0a8b4386256201d2533c6b61577b6af.tar.gz
lpc1343-breakout-b228d0d5a0a8b4386256201d2533c6b61577b6af.tar.bz2
lpc1343-breakout-b228d0d5a0a8b4386256201d2533c6b61577b6af.tar.xz
lpc1343-breakout-b228d0d5a0a8b4386256201d2533c6b61577b6af.zip
o Optimizing routing, making the board a bit smaller.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3d1962d..97e56bc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
NAME=lpc1343-breakout
-all: $(NAME).pdf $(NAME)-Front.pdf $(NAME)-Back.pdf
+all: $(NAME).pdf $(NAME)-Front.pdf $(NAME)-Back.pdf kicad-check
clean:
rm -rf $(KICAD_TARGETS_CLEAN)
@@ -10,16 +10,24 @@ PCBNEW ?= pcbnew
PCBNEW_OPTS ?= --plot=ps --plot-fill-all-zones
EESCHEMA ?= eeschema
-KICAD_TARGETS_CLEAN = $(NAME)-Front.pdf $(NAME)-Back.pdf
+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 $<
-%.ps: %.brd
+%-schema.ps: %.sch
$(EESCHEMA) --plot=ps $<
-%-Front.ps: %.brd
+%-board-Front.ps: %.brd
$(PCBNEW) $(PCBNEW_OPTS) --layers=Front --plot-mirror $<
-%-Back.ps: %.brd
+%-board-Back.ps: %.brd
$(PCBNEW) $(PCBNEW_OPTS) --layers=Back $<
+
+%.erc: %.sch
+ $(EESCHEMA) --erc $(NAME).sch
+
+%.rpt: %.brd
+ $(EESCHEMA) --plot=ps $<