From 52a7ed16e7709f565f8b12d0608f2d9e03396112 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 24 Jun 2016 14:38:10 +0200 Subject: Makefile to extract PNGs for http://hexb.in/ --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2b265e7 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ + +BUILDDIR = build +SRCDIR = src + + +PNG_TARGETS = $(patsubst $(SRCDIR)/%-source.svg,$(BUILDDIR)/%.png,$(wildcard $(SRCDIR)/*-source.svg)) + +.PHONY: all clean +all: $(PNG_TARGETS) + +$(BUILDDIR)/%.png: $(SRCDIR)/%-source.svg + mkdir -p ${BUILDDIR} + inkscape $< -i layer3 -j -C -e $@ -w 181 -h 209 -y 0 + +clean: + rm -f ${BUILDDIR}/*.png ${BUILDDIR}/*.svg -- cgit v1.2.3