diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2016-06-24 14:38:10 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2016-06-24 14:38:10 +0200 |
commit | 52a7ed16e7709f565f8b12d0608f2d9e03396112 (patch) | |
tree | 8563aa80b1ef2a53b9155d8bc4f987bd57ed0fce | |
parent | b0b400ec2d25eb3d4c098b64848fd0741a2fef28 (diff) |
Makefile to extract PNGs for http://hexb.in/
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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 |