Add plates and refined wall and pillar sizes

This commit is contained in:
2023-02-17 14:24:58 +01:00
parent 53679529f5
commit 574499bfa7
3 changed files with 34 additions and 10 deletions

View File

@@ -1,8 +1,13 @@
PARAMETERS := $(shell cat Lego.json | grep -v '"parameterSets": ""' | jq -r '.parameterSets | keys[]')
STL = $(PARAMETERS:%=%.stl)
SCAD = Lego.scad
CONFIG = Lego.json
all: $(STL)
$(STL): Lego.scad Lego.json
openscad -o $@ -P $@ $<
clean:
rm -f $(STL)
$(STL): $(SCAD) $(CONFIG) Makefile
openscad -o $@ -p $(CONFIG) -P $(@:%.stl=%) $(SCAD)