add svg stamp support
This commit is contained in:
parent
87b6a11a30
commit
9c9abf9f1d
10 changed files with 398 additions and 0 deletions
21
text/Makefile
Normal file
21
text/Makefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
TARGETS=$(shell python3 get_targets.py main.json)
|
||||
|
||||
GENERATED_FILES = $(wildcard *.deps) \
|
||||
$(wildcard *.stl) \
|
||||
$(wildcard *.png) \
|
||||
$(wildcard *.generated.scad)
|
||||
|
||||
.phony: all clean
|
||||
|
||||
all: ${TARGETS}
|
||||
|
||||
include $(wildcard *.deps)
|
||||
|
||||
%.stl: main.scad main.json Makefile
|
||||
flatpak run org.openscad.OpenSCAD --enable textmetrics -p main.json -P $(basename $@) -DFN=64 -D "MODELVER=\"$(shell git rev-parse --short=6 HEAD)\"" -m make -o $@ -d $@.deps $<
|
||||
|
||||
%.png: main.scad main.json Makefile
|
||||
flatpak run org.openscad.OpenSCAD --enable textmetrics -p main.json -P $(basename $@) -DFN=32 --render --imgsize 1600,1200 -o $@ main.scad
|
||||
|
||||
clean:
|
||||
rm -rf ${GENERATED_FILES}
|
||||
Loading…
Add table
Add a link
Reference in a new issue