-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 859 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%.dxf: %.scad
openscad $< -o $@
%.scad: %.py cad.py layout.py
python $< > $@
.PHONY: clean
clean:
rm -rf *.scad *.dxf left/ right/ left.zip right.zip
.PHONY: case_panels
case_panels: combined_lower_panel.dxf lower_panel.dxf upper_panel.dxf
.PHONY: pcb_layout
pcb_layout: pcb_outline.dxf
python pcb_layout.py ./hardware/aya.kicad_pcb
left/left.kicad_pcb: hardware/aya.kicad_pcb
mkdir -p "$(shell dirname $@)"
kikit panelize extractboard -s -220 -25 200 140 $< $@
right/right.kicad_pcb: hardware/aya.kicad_pcb
mkdir -p "$(shell dirname $@)"
kikit panelize extractboard -s 20 -25 200 140 $< $@
.PHONY: pcb_split
pcb_split: left/left.kicad_pcb right/right.kicad_pcb
left.zip: left/left.kicad_pcb
zip $@ left/*.gbr left/*.drl
right.zip: right/right.kicad_pcb
zip $@ right/*.gbr right/*.drl
.PHONY: pcb_gerbers
pcb_gerbers: left.zip right.zip