temperature-tower/Makefile

17 lines
430 B
Makefile
Raw Normal View History

2023-11-26 15:48:09 -07:00
PARAMSETS != cat params.json | jq -r '.parameterSets | keys[] | select(length > 0)'
OUTPUTS = $(PARAMSETS:%=%.3mf)
all: $(OUTPUTS)
clean:
rm -f $(OUTPUTS) *.bare.3mf *.log
targets:
@for i in $(PARAMSETS); do echo $$i.3mf; done
%.bare.3mf %.log: temp-tower.scad params.json
openscad -o $*.bare.3mf -P $* -p params.json temp-tower.scad 2>$*.log
%.3mf: %.bare.3mf %.log postprocess.sh
./postprocess.sh $@ $*.bare.3mf $*.log