changeset 67:a1d59c66a410

lunalcd2/pcb: add Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 25 Jun 2021 23:08:00 +0000
parents b1e05a199192
children 8bfa10553e36
files .hgignore lunalcd2/pcb/Makefile
diffstat 2 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Fri Jun 25 22:59:37 2021 +0000
+++ b/.hgignore	Fri Jun 25 23:08:00 2021 +0000
@@ -26,6 +26,7 @@
 ^lunalcd1/pcb/gerbers\.
 ^lunalcd1/src/elements\.pcb$
 
+^lunalcd2/pcb/gerbers\.
 ^lunalcd2/src/elements\.pcb$
 
 ^mmtb1/pcb/gerbers\.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lunalcd2/pcb/Makefile	Fri Jun 25 23:08:00 2021 +0000
@@ -0,0 +1,25 @@
+ALL=	gerbers.zip lunalcd2_pcb.ps lunalcd2_pcb.pdf
+EXPARG=
+
+all:	${ALL}
+
+.SUFFIXES:	.ps .pdf
+
+.ps.pdf:
+	ps2pdf $*.ps
+
+lunalcd2_pcb.ps:	lunalcd2.pcb
+	pcb -x ps --psfile $@ ${EXPARG} lunalcd2.pcb
+
+gerbers.d:	lunalcd2.pcb
+	-rm -rf $@
+	mkdir $@
+	pcb -x gerber --gerberfile gerbers.d/lunalcd2 ${EXPARG} lunalcd2.pcb
+
+gerbers.zip:	gerbers.d
+	-rm -f $@
+	cd gerbers.d; zip ../gerbers.zip *
+
+clean:
+	rm -f *.ps *.pdf lunalcd2.pcb-
+	rm -rf gerbers.*