summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3d1962d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+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 $<