FreeCalypso > hg > fc-small-hw
annotate lcr0402/Makefile @ 54:91798685fd8d
lcr0402: add Makefile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 22 Jun 2021 05:27:16 +0000 |
parents | |
children |
rev | line source |
---|---|
54
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 ALL= gerbers.zip lcr0402_pcb.ps lcr0402_pcb.pdf |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 EXPARG= |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 all: ${ALL} |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 .SUFFIXES: .ps .pdf |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 .ps.pdf: |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 ps2pdf $*.ps |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 lcr0402_pcb.ps: lcr0402.pcb |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 pcb -x ps --psfile $@ ${EXPARG} lcr0402.pcb |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 gerbers.d: lcr0402.pcb |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 -rm -rf $@ |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 mkdir $@ |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 pcb -x gerber --gerberfile gerbers.d/lcr0402 ${EXPARG} lcr0402.pcb |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 gerbers.zip: gerbers.d |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 -rm -f $@ |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 cd gerbers.d; zip ../gerbers.zip * |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 clean: |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 rm -f *.ps *.pdf lcr0402.pcb- |
91798685fd8d
lcr0402: add Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 rm -rf gerbers.* |