From 8c3cfcd0645d7aff09636d71dbb6c9fe6e36222b Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Thu, 2 Jul 2020 20:13:23 +0200 Subject: [PATCH] svg support in makefile --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 7878a9c..b7af99e 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,16 @@ $(BUILDDIR)/%.gif: %_bg.gif @convert -transparent '#ff9bc7' $(TMPDIR)/$*_bg_u.gif $(TMPDIR)/$*_t.gif @gifsicle --disposal=previous $(TMPDIR)/$*_t.gif -o $(BUILDDIR)/$*.gif +$(BUILDDIR)/%_small.png: %.svg + @echo $(notdir $@) + @mkdir -p $(dir $@) + @inkscape -e $@ -h 16 $< >/dev/null + +$(BUILDDIR)/%_large.png: %.svg + @echo $(notdir $@) + @mkdir -p $(dir $@) + @inkscape -e $@ -h 30 $< >/dev/null + clean: $(RM) -r $(TMPDIR) $(BUILDDIR)