chiark / gitweb /
8317 Makefile: add dep on Libs.scad
[dl-things.git] / th-8317 / Makefile
1
2 OBJECTS= Hub ExtensionArm ArmEnd ForkClip
3
4 all:            stls scads
5
6 stls:           $(foreach f,$(OBJECTS),iwj-$f.stl)
7
8 scads:          $(foreach f,$(OBJECTS),iwj-$f.scad)
9
10 iwj-%.scad:
11         @echo ' write $@'
12         @echo >$@.new 'include <FilamentSpool.scad>'
13         @echo >>$@.new '$*();'
14         @mv -f $@.new $@
15
16 %.stl:  %.scad FilamentSpool.scad Libs.scad
17         openscad -o $@ $<
18
19 HRR=/home/reprap
20 SLIC3R=$(HRR)/Slic3r/bin/slic3r
21 CONFIG=$(HRR)/play/slic3r-config.ini
22
23 %.gcode:        $(CONFIG) %.stl
24                 $(SLIC3R) --load $^ --output $@
25