changeset 54:91798685fd8d

lcr0402: add Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 22 Jun 2021 05:27:16 +0000
parents d683ee552862
children a2ce85275f63
files .hgignore lcr0402/Makefile
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue Jun 22 05:20:42 2021 +0000
+++ b/.hgignore	Tue Jun 22 05:27:16 2021 +0000
@@ -17,6 +17,8 @@
 ^lcdtest1/pcb/gerbers\.
 ^lcdtest1/schem\+bom/elements\.pcb$
 
+^lcr0402/gerbers\.
+
 ^lunakpd1/pcb/gerbers\.
 ^lunakpd1/placetool/placetool$
 ^lunakpd1/src/elements\.pcb$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lcr0402/Makefile	Tue Jun 22 05:27:16 2021 +0000
@@ -0,0 +1,25 @@
+ALL=	gerbers.zip lcr0402_pcb.ps lcr0402_pcb.pdf
+EXPARG=
+
+all:	${ALL}
+
+.SUFFIXES:	.ps .pdf
+
+.ps.pdf:
+	ps2pdf $*.ps
+
+lcr0402_pcb.ps:	lcr0402.pcb
+	pcb -x ps --psfile $@ ${EXPARG} lcr0402.pcb
+
+gerbers.d:	lcr0402.pcb
+	-rm -rf $@
+	mkdir $@
+	pcb -x gerber --gerberfile gerbers.d/lcr0402 ${EXPARG} lcr0402.pcb
+
+gerbers.zip:	gerbers.d
+	-rm -f $@
+	cd gerbers.d; zip ../gerbers.zip *
+
+clean:
+	rm -f *.ps *.pdf lcr0402.pcb-
+	rm -rf gerbers.*