-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (29 loc) · 1.23 KB
/
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
37
INKSCAPEDIR = /usr/share/inkscape/extensions/
DXF_OUTLINES = $(INKSCAPEDIR)/dxf_outlines.py
OPENSCAD = openscad --enable manifold
SCADFILES = \
ball-end.scad \
bedholder.scad \
cable-cover.scad \
carriage.scad \
corner-bottom.scad \
corner-top.scad \
eccentric-spacer.scad \
effector.scad \
foot.scad \
groovemount.scad \
idler-spacer.scad \
magnetic-probe.scad \
tslotnut.scad
STLFILES = $(SCADFILES:.scad=.stl)
DEPFILES = $(addsuffix deps,$(SCADFILES)) assembly/groovemount.scaddeps
all: $(STLFILES)
%.dxf: %.svg
$(DXF_OUTLINES) --units='25.4/90' --encoding=latin1 $< > $@
%.stl: %.scad
$(OPENSCAD) -d $<deps -m $(MAKE) -o $@ $<
assembly/groovemount-assembly.stl: groovemount.scad
$(OPENSCAD) -Dmode='"preview"' -d assembly/$<deps -m $(MAKE) -o $@ $<
clean:
rm $(STLFILES) $(DEPFILES)
-include $(DEPFILES)