changeset 12:ee17927ee326

lunalcd1/pcb/Makefile added
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 03 Apr 2020 00:02:03 +0000
parents e4f0ea46183a
children c016671a4b4a
files .hgignore lunalcd1/pcb/Makefile
diffstat 2 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Thu Apr 02 23:26:47 2020 +0000
+++ b/.hgignore	Fri Apr 03 00:02:03 2020 +0000
@@ -15,6 +15,7 @@
 ^lcdtest1/pcb/gerbers\.
 ^lcdtest1/schem\+bom/elements\.pcb$
 
+^lunalcd1/pcb/gerbers\.
 ^lunalcd1/src/elements\.pcb$
 
 ^mmtb1/pcb/gerbers\.
--- /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.*