summaryrefslogtreecommitdiff
path: root/renderer/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-09-27 10:07:38 +0200
committerjaseg <git@jaseg.net>2019-09-27 10:07:38 +0200
commit6002d409143a6726899a4de15c3a6b279a6b1d71 (patch)
treefcde90f9b0ece9d552164effcc710b7fad978126 /renderer/Makefile
parent3340885ade322e8ae6b75257cc760ff48e218a0a (diff)
downloadpogojig-6002d409143a6726899a4de15c3a6b279a6b1d71.tar.gz
pogojig-6002d409143a6726899a4de15c3a6b279a6b1d71.tar.bz2
pogojig-6002d409143a6726899a4de15c3a6b279a6b1d71.zip
Directory reorg: Put renderer into its own subdir
Diffstat (limited to 'renderer/Makefile')
-rw-r--r--renderer/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/renderer/Makefile b/renderer/Makefile
new file mode 100644
index 0000000..0c6f340
--- /dev/null
+++ b/renderer/Makefile
@@ -0,0 +1,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 out
+ $(OPENSCAD) -o $@ $<
+
+out/jig.stl: src/jig.scad src/input.preprocessed.dxf
+ $(OPENSCAD) -o $@ $<
+
+out/kicad: input.svg out/pcb_shape.dxf
+ 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"
+
+out:
+ mkdir -p out
+
+.PHONY: clean
+clean:
+ rm -f src/input.preprocessed.dxf
+ rm -f src/input.preprocessed.svg
+ rm -rf out
+