blob: ad6ee0d697290c907e223ebf3b026a7093168bbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
SOURCES = $(wildcard *.kra)
BASENAMES = $(foreach f, $(SOURCES), $(basename $(f)))
all:
make $(foreach f, $(BASENAMES), png/$(f).png)
make $(foreach f, $(BASENAMES), gif/$(f).gif)
make $(foreach f, $(BASENAMES), telegram/$(f).png)
# export krita file to png
png/%.png: %.kra
krita --export $(basename $(@F)).kra --export-filename $@
# 512x512 gif
gif/%.gif: png/%.png
magick png/$(basename $(@F)).png -resize 512x512 $@
# 512x512 png
telegram/%.png: png/%.png
magick png/$(basename $(@F)).png -resize 512x512 $@
.PHONY: all
# do not delete full-size pngs
.PRECIOUS: png/%.png
|