changeset 84:dbd57e8dd82a default tip

sim-fpc-pasv/pcb: add Makefile for Gerber output
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 02 Nov 2022 07:22:44 +0000
parents 9efa98ea62e5
children
files .hgignore sim-fpc-pasv/pcb/Makefile
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue Oct 25 07:31:52 2022 +0000
+++ b/.hgignore	Wed Nov 02 07:22:44 2022 +0000
@@ -34,4 +34,5 @@
 ^mmtb1/pcb/gerbers\.
 ^mmtb1/schem\+bom/elements\.pcb$
 
+^sim-fpc-pasv/pcb/gerbers\.
 ^sim-fpc-pasv/src/elements\.pcb$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sim-fpc-pasv/pcb/Makefile	Wed Nov 02 07:22:44 2022 +0000
@@ -0,0 +1,17 @@
+ALL=	gerbers.zip
+EXPARG=
+
+all:	${ALL}
+
+gerbers.d:	sim-fpc-pasv.pcb
+	-rm -rf $@
+	mkdir $@
+	pcb -x gerber --gerberfile gerbers.d/simfpc ${EXPARG} sim-fpc-pasv.pcb
+
+gerbers.zip:	gerbers.d
+	-rm -f $@
+	cd gerbers.d; zip ../gerbers.zip *
+
+clean:
+	rm -f *.ps *.pdf sim-fpc-pasv.pcb-
+	rm -rf gerbers.*