Update TPU toy cubes

This commit is contained in:
Stefan Thoss
2025-07-17 13:38:26 -07:00
parent 23aae4fd59
commit 927ea506fd
25 changed files with 137878 additions and 17 deletions
+14
View File
@@ -0,0 +1,14 @@
SCAD=toy-cubes.scad
SUFFIX=.stl
# match "module foobar() { // `make` me"
TARGETS != sed -n 's/^module *\([A-Za-z0-9_-]*\)(.*) *.*make.* me.*$$/\1$(SUFFIX)/p' $(SCAD)
$(shell mkdir -p output)
all: ${TARGETS}
.SUFFIXES: ${SUFFIX}
${TARGETS}: $(SCAD)
echo -e 'use <$(SCAD)>;\n$*();' | openscad -m make -o output/$@ -