Merge pull request #1 from codl/add-makefile

Add Makefile
This commit is contained in:
chr v1.x
2022-08-04 13:52:21 -04:00
committed by GitHub
2 changed files with 19 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.png
dragn-emoji.tar.gz

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