simplify/improve demo themes builder

This commit is contained in:
ppenguin 2025-04-02 21:07:29 +02:00
parent b338ea5da0
commit 755da3d131
No known key found for this signature in database
GPG key ID: 7E7143B546BB17A7

View file

@ -31,6 +31,7 @@ SVGS = $(shell ./d2 themes | gawk -F':' '/^-/{ printf "$(SVGDIR)/themex-%03d.svg
.PHONY: clean
clean:
rm -f $(SVGS) d2
rmdir $(SVGDIR)
.PHONY: themesdemo
themesdemo: $(SVGS) d2
@ -39,4 +40,4 @@ $(SVGDIR)/themex-%.svg: testdata/examples/themex.d2
$(info Building $@ from $< ...)
./d2 -t $$(( 10#$* )) $< $@
# d2: build
d2: build