diff mmtb1/pcb/Makefile @ 4:070b11b83958

mmtb1/pcb: added Makefile for fab output generation
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 10 Dec 2019 06:56:59 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmtb1/pcb/Makefile	Tue Dec 10 06:56:59 2019 +0000
@@ -0,0 +1,25 @@
+ALL=	gerbers.zip mmtb1_pcb.ps mmtb1_pcb.pdf
+EXPARG=
+
+all:	${ALL}
+
+.SUFFIXES:	.ps .pdf
+
+.ps.pdf:
+	ps2pdf $*.ps
+
+mmtb1_pcb.ps:	mmtb1.pcb
+	pcb -x ps --psfile $@ ${EXPARG} mmtb1.pcb
+
+gerbers.d:	mmtb1.pcb
+	-rm -rf $@
+	mkdir $@
+	pcb -x gerber --gerberfile gerbers.d/mmtb1 ${EXPARG} mmtb1.pcb
+
+gerbers.zip:	gerbers.d
+	-rm -f $@
+	cd gerbers.d; zip ../gerbers.zip *
+
+clean:
+	rm -f *.ps *.pdf mmtb1.pcb-
+	rm -rf gerbers.*