diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9309987 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.png +dragn-emoji.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..907dc1a --- /dev/null +++ b/Makefile @@ -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