annotate lunakpd1/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 b3dffadff287
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 ALL= gerbers.zip lunakpd1_pcb.ps lunakpd1_pcb.pdf
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 EXPARG=
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 all: ${ALL}
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 .SUFFIXES: .ps .pdf
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 .ps.pdf:
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 ps2pdf $*.ps
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 lunakpd1_pcb.ps: lunakpd1.pcb
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 pcb -x ps --psfile $@ ${EXPARG} lunakpd1.pcb
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 gerbers.d: lunakpd1.pcb
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 -rm -rf $@
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 mkdir $@
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 pcb -x gerber --gerberfile gerbers.d/lunakpd1 ${EXPARG} lunakpd1.pcb
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 gerbers.zip: gerbers.d
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 -rm -f $@
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 cd gerbers.d; zip ../gerbers.zip *
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 clean:
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 rm -f *.ps *.pdf lunakpd1.pcb-
b3dffadff287 lunakpd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 rm -rf gerbers.*