view lunakpd1/pcb/Makefile @ 36:40e2106a0500

duart28/design-spec: coming along
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 23 Jul 2020 06:59:32 +0000
parents b3dffadff287
children
line wrap: on
line source

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

all:	${ALL}

.SUFFIXES:	.ps .pdf

.ps.pdf:
	ps2pdf $*.ps

lunakpd1_pcb.ps:	lunakpd1.pcb
	pcb -x ps --psfile $@ ${EXPARG} lunakpd1.pcb

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

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

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