diff lunalcd1/pcb/Makefile @ 12:ee17927ee326

lunalcd1/pcb/Makefile added
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 03 Apr 2020 00:02:03 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lunalcd1/pcb/Makefile	Fri Apr 03 00:02:03 2020 +0000
@@ -0,0 +1,25 @@
+ALL=	gerbers.zip lunalcd1_pcb.ps lunalcd1_pcb.pdf
+EXPARG=
+
+all:	${ALL}
+
+.SUFFIXES:	.ps .pdf
+
+.ps.pdf:
+	ps2pdf $*.ps
+
+lunalcd1_pcb.ps:	lunalcd1.pcb
+	pcb -x ps --psfile $@ ${EXPARG} lunalcd1.pcb
+
+gerbers.d:	lunalcd1.pcb
+	-rm -rf $@
+	mkdir $@
+	pcb -x gerber --gerberfile gerbers.d/lunalcd1 ${EXPARG} lunalcd1.pcb
+
+gerbers.zip:	gerbers.d
+	-rm -f $@
+	cd gerbers.d; zip ../gerbers.zip *
+
+clean:
+	rm -f *.ps *.pdf lunalcd1.pcb-
+	rm -rf gerbers.*