summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2025-09-23 18:04:51 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2025-09-23 18:04:51 +0200
commit40169332da43e7c0a27e63d35dc78b522e170e20 (patch)
tree40e53230f02d93062d3456d6de0800bf5ad03efa
parent5c01943230f13a1b106091633a8461c0f9af453f (diff)
Automatically build pngs
-rw-r--r--mopew/mandala/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/mopew/mandala/Makefile b/mopew/mandala/Makefile
new file mode 100644
index 0000000..9628dcf
--- /dev/null
+++ b/mopew/mandala/Makefile
@@ -0,0 +1,11 @@
+BUILDDIR = build
+SRCDIR = cards
+
+PNG_TARGETS = $(patsubst $(SRCDIR)/%.svg,$(BUILDDIR)/%.png,$(wildcard $(SRCDIR)/*.svg))
+
+.PHONY: all clean
+all: $(PNG_TARGETS)
+
+$(BUILDDIR)/%.png: $(SRCDIR)/%.svg
+ mkdir -p ${BUILDDIR}
+ inkscape $< --export-area-drawing -o $@ --export-dpi=600 -y 0