summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7d1efbe
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+GENERATE = python generate.py
+GENERATE_OPTIONS =
+INKSCAPE = /usr/bin/inkscape
+INKSCAPE_OPTIONS = --export-dpi=300 --without-gui
+
+all: out.png
+
+out.svg:
+ $(GENERATE) $(GENERATE_OPTIONS)
+
+out.png: out.svg
+ $(INKSCAPE) $(INKSCAPE_OPTIONS) --export-area-canvas --export-png=out.png out.svg