changeset 79:48f3c5997dec

lunalcd3: add Makefile for Gerber output generation
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 04 Dec 2021 22:28:05 +0000
parents 7762ad7f61fe
children 6bd0e0627938
files .hgignore lunalcd3/Makefile
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Thu Nov 18 07:44:45 2021 +0000
+++ b/.hgignore	Sat Dec 04 22:28:05 2021 +0000
@@ -29,5 +29,7 @@
 ^lunalcd2/pcb/gerbers\.
 ^lunalcd2/src/elements\.pcb$
 
+^lunalcd3/gerbers\.
+
 ^mmtb1/pcb/gerbers\.
 ^mmtb1/schem\+bom/elements\.pcb$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lunalcd3/Makefile	Sat Dec 04 22:28:05 2021 +0000
@@ -0,0 +1,25 @@
+ALL=	gerbers.zip lunalcd3_pcb.ps lunalcd3_pcb.pdf
+EXPARG=
+
+all:	${ALL}
+
+.SUFFIXES:	.ps .pdf
+
+.ps.pdf:
+	ps2pdf $*.ps
+
+lunalcd3_pcb.ps:	lunalcd3.pcb
+	pcb -x ps --psfile $@ ${EXPARG} lunalcd3.pcb
+
+gerbers.d:	lunalcd3.pcb
+	-rm -rf $@
+	mkdir $@
+	pcb -x gerber --gerberfile gerbers.d/lunalcd3 ${EXPARG} lunalcd3.pcb
+
+gerbers.zip:	gerbers.d
+	-rm -f $@
+	cd gerbers.d; zip ../gerbers.zip *
+
+clean:
+	rm -f *.ps *.pdf lunalcd3.pcb-
+	rm -rf gerbers.*