-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (18 loc) · 879 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
#TARGETS=SKQU.stl
#all: ${TARGETS}
KEYCAP != perl -n -e'/^keycap_style\s*=\s*"(\S+)"/ && print $$1' < settings.scad
STEM != perl -n -e'/^stem_model\s*=\s*"(\S+)"/ && print $$1' < settings.scad
current: things/${STEM}-${KEYCAP}.stl things/${STEM}_mx-adapter.stl
update: include/keycap.scad include/stem.scad
include/keycap.scad : keycaps/${KEYCAP}.scad settings.scad
ln -srf $< $@
include/stem.scad : stems/${STEM}.scad settings.scad
ln -srf $< $@
things/series%.stl : series.scad settings.scad include/keycap.scad include/stem.scad
openscad -q --hardwarnings --render -o $@ $<
things/%.stl : final.scad settings.scad include/keycap.scad include/stem.scad
openscad -q --hardwarnings --render -o $@ $<
things/%_mx-adapter.stl: adapters/%.scad settings.scad adapters/util.scad adapters/mx-adapter.stl
openscad -q --hardwarnings --render -o $@ $<
clean:
rm ${TARGETS}