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