view mmtb1/pcb/Makefile @ 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 070b11b83958
children
line wrap: on
line source

ALL=	gerbers.zip mmtb1_pcb.ps mmtb1_pcb.pdf
EXPARG=

all:	${ALL}

.SUFFIXES:	.ps .pdf

.ps.pdf:
	ps2pdf $*.ps

mmtb1_pcb.ps:	mmtb1.pcb
	pcb -x ps --psfile $@ ${EXPARG} mmtb1.pcb

gerbers.d:	mmtb1.pcb
	-rm -rf $@
	mkdir $@
	pcb -x gerber --gerberfile gerbers.d/mmtb1 ${EXPARG} mmtb1.pcb

gerbers.zip:	gerbers.d
	-rm -f $@
	cd gerbers.d; zip ../gerbers.zip *

clean:
	rm -f *.ps *.pdf mmtb1.pcb-
	rm -rf gerbers.*