mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-09-25 16:18:59 +02:00
20 lines
611 B
Makefile
20 lines
611 B
Makefile
os = /usr/local/bin/openscad
|
|
opts =
|
|
imgs = imgs/bolt-M4.png imgs/nut-M12x0.5.png imgs/nutNbolt.png
|
|
|
|
.PHONY: all
|
|
all: $(imgs)
|
|
|
|
imgs/bolt-M4.png: bolt.scad
|
|
$(os) $(opts) --D 'type="M4"' --camera=0.49,-0.26,1.55,74.6,0.0,78.9,20 --imgsize=2048,2048 -o $@ $<
|
|
|
|
imgs/nut-M12x0.5.png: nut.scad
|
|
$(os) $(opts) --D 'type="M12x0.5"' --D 'turns=10' --D 'Douter=16' --camera=-2.2,1.2,1.8,66,0,73,52 --imgsize=2048,2048 --projection=ortho -o $@ $<
|
|
|
|
imgs/nutNbolt.png: nutNbolt.scad
|
|
$(os) $(opts) --camera=-0.24,1.19,4.24,83,0,326.9,40.3 --imgsize=2048,2048 --projection=ortho -o $@ $<
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm imgs/*.png
|