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:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.png
|
||||
dragn-emoji.tar.gz
|
||||
17
Makefile
Normal file
17
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user