summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-09-26 23:58:43 +0200
committerjaseg <git@jaseg.net>2019-09-26 23:58:43 +0200
commit1f13910211d99e45118b1efc897007772c6d51d7 (patch)
tree69c3154959e29d445fcc91bcd7cb548490238486 /Makefile
parentb2eb56076d47af08a11e10fa53446a00b849a13c (diff)
downloadpogojig-1f13910211d99e45118b1efc897007772c6d51d7.tar.gz
pogojig-1f13910211d99e45118b1efc897007772c6d51d7.tar.bz2
pogojig-1f13910211d99e45118b1efc897007772c6d51d7.zip
Add zip generation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4b66b0d..0c6f340 100644
--- a/Makefile
+++ b/Makefile
@@ -4,24 +4,32 @@
OPENSCAD ?= openscad
-all: src/jig.stl src/pcb_shape.dxf
+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 $< $@
-src/pcb_shape.dxf: src/pcb_shape.scad src/input.preprocessed.dxf
+out/pcb_shape.dxf: src/pcb_shape.scad src/input.preprocessed.dxf out
$(OPENSCAD) -o $@ $<
-src/jig.stl: src/jig.scad src/input.preprocessed.dxf
+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 -f src/jig.stl
- rm -f src/pcb_shape.dxf
+ rm -rf out