blob: a27e79a53e2e2dcfe9b61ed2c4c22e9069a30b54 (
plain)
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
|
# Environment variables:
# INKSCAPE_DXF_FLATNESS controls inkscape SVG->DXF export curve flatness (default: 0.1)
# INKSCAPE, OPENSCAD: Commands to use for inkscape and openscad
OPENSCAD ?= openscad
all: out.zip
out.zip: out/jig.stl out/pcb_shape.dxf out/kicad
zip -r out.zip out
src/input.preprocessed.dxf: src/input.preprocessed.svg
support/inkscape_exporter.py $< $@
out/pcb_shape.dxf: src/pcb_shape.scad src/input.preprocessed.dxf
mkdir -p out
$(OPENSCAD) -o $@ $<
out/jig.stl: src/jig.scad src/input.preprocessed.dxf
mkdir -p out
$(OPENSCAD) -o $@ $<
out/kicad: input.svg out/pcb_shape.dxf
mkdir -p out
support/generate_kicad.py $^ $@
src/input.preprocessed.svg: input.svg
support/inkscape_svg_filter_layers.py $< $@ --only --name "Test Points" "Mounting Holes" "Grip Slots" "Outline"
.PHONY: clean
clean:
rm -f src/input.preprocessed.dxf
rm -f src/input.preprocessed.svg
rm -rf out
|