1
0
Fork 0

svg support in makefile

This commit is contained in:
Rhiannon Morris 2020-07-02 20:13:23 +02:00
parent 4be3145702
commit 8c3cfcd064
1 changed files with 10 additions and 0 deletions

View File

@ -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)