Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
OPENSCAD := openscad-nightly
targets := $(wildcard *.scad)
stls := $(targets:.scad=.stl)
image_dir := images
thumbnails := $(targets:%.scad=${image_dir}/%_s.png)
.PHONY: all clean images
all: ${stls}
@echo done
${stls}: %.stl: %.scad
@echo Building $@ from $<
${OPENSCAD} -o $@ $<
clean:
rm -f *.stl
images: $(thumbnails)
@echo done
$(thumbnails): ${image_dir}/%_s.png: %.scad
@echo Generating $@ from $<
${OPENSCAD} -o $@ \
--imgsize=320,240 --colorscheme=Tomorrow \
--projection o --camera 230,-230,280,0,0,40 $<
658f4ff00This file is pinned to the selected release. Download the original to open it in your design tool.