FreeCalypso > hg > fc-small-hw
changeset 4:070b11b83958
mmtb1/pcb: added Makefile for fab output generation
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 10 Dec 2019 06:56:59 +0000 |
parents | bed1de3dfb85 |
children | 839e9b527e69 |
files | .hgignore mmtb1/pcb/Makefile |
diffstat | 2 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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$
--- /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.*