FreeCalypso > hg > fc-small-hw
annotate lunalcd3/Makefile @ 79:48f3c5997dec
lunalcd3: add Makefile for Gerber output generation
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 04 Dec 2021 22:28:05 +0000 |
parents | lunalcd2/pcb/Makefile@a1d59c66a410 |
children |
rev | line source |
---|---|
79
48f3c5997dec
lunalcd3: add Makefile for Gerber output generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
67
diff
changeset
|
1 ALL= gerbers.zip lunalcd3_pcb.ps lunalcd3_pcb.pdf |
12
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 EXPARG= |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 all: ${ALL} |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 .SUFFIXES: .ps .pdf |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 .ps.pdf: |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 ps2pdf $*.ps |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
79
48f3c5997dec
lunalcd3: add Makefile for Gerber output generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
67
diff
changeset
|
11 lunalcd3_pcb.ps: lunalcd3.pcb |
48f3c5997dec
lunalcd3: add Makefile for Gerber output generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
67
diff
changeset
|
12 pcb -x ps --psfile $@ ${EXPARG} lunalcd3.pcb |
12
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
79
48f3c5997dec
lunalcd3: add Makefile for Gerber output generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
67
diff
changeset
|
14 gerbers.d: lunalcd3.pcb |
12
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 -rm -rf $@ |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 mkdir $@ |
79
48f3c5997dec
lunalcd3: add Makefile for Gerber output generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
67
diff
changeset
|
17 pcb -x gerber --gerberfile gerbers.d/lunalcd3 ${EXPARG} lunalcd3.pcb |
12
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 gerbers.zip: gerbers.d |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 -rm -f $@ |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 cd gerbers.d; zip ../gerbers.zip * |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 clean: |
79
48f3c5997dec
lunalcd3: add Makefile for Gerber output generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
67
diff
changeset
|
24 rm -f *.ps *.pdf lunalcd3.pcb- |
12
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 rm -rf gerbers.* |