Add Makefile

This makefile generates PNG versions and an archive that can be imported
directly into Mastodon. It requires imagemagick and oxipng.
This commit is contained in:
codl
2022-08-04 19:36:50 +02:00
parent e101964e38
commit 876c91bdf7
2 changed files with 19 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
SVGS := $(wildcard *.svg)
PNGS := $(SVGS:%.svg=%.png)
.PHONY: clean
dragn-emoji.tar.gz: $(PNGS)
tar -c $? | gzip > $@
%.nooptim.png: %.svg
magick convert -background none -geometry 256x256 $< $@
%.png: %.nooptim.png
oxipng -o max --out $@ $<
clean:
find . -maxdepth 1 -name '*.png' -delete
rm -f dragn-emoji.tar.gz