FreeCalypso > hg > fc-small-hw
annotate lunalcd1/pcb/Makefile @ 53:d683ee552862
lcr0402 project started
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 22 Jun 2021 05:20:42 +0000 |
parents | ee17927ee326 |
children |
rev | line source |
---|---|
12
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 ALL= gerbers.zip lunalcd1_pcb.ps lunalcd1_pcb.pdf |
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 |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 lunalcd1_pcb.ps: lunalcd1.pcb |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 pcb -x ps --psfile $@ ${EXPARG} lunalcd1.pcb |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 gerbers.d: lunalcd1.pcb |
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 $@ |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 pcb -x gerber --gerberfile gerbers.d/lunalcd1 ${EXPARG} lunalcd1.pcb |
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: |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 rm -f *.ps *.pdf lunalcd1.pcb- |
ee17927ee326
lunalcd1/pcb/Makefile added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 rm -rf gerbers.* |