# HG changeset patch # User Mychaela Falconia # Date 1575961019 0 # Node ID 070b11b8395821f41fd34b9cf57ccb364dc024f5 # Parent bed1de3dfb854c08f5db412b452581d6c9842f38 mmtb1/pcb: added Makefile for fab output generation diff -r bed1de3dfb85 -r 070b11b83958 .hgignore --- a/.hgignore Tue Dec 10 06:51:02 2019 +0000 +++ b/.hgignore Tue Dec 10 06:56:59 2019 +0000 @@ -15,4 +15,5 @@ ^lcdtest1/pcb/gerbers\. ^lcdtest1/schem\+bom/elements\.pcb$ +^mmtb1/pcb/gerbers\. ^mmtb1/schem\+bom/elements\.pcb$ diff -r bed1de3dfb85 -r 070b11b83958 mmtb1/pcb/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmtb1/pcb/Makefile Tue Dec 10 06:56:59 2019 +0000 @@ -0,0 +1,25 @@ +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.*