stickerpack_assembler/Makefile
2023-09-29 17:03:18 +04:00

15 lines
646 B
Makefile

.PHONY: all subrecipes_png subrecipes_webp
makeFileDir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
all: subrecipes_png subrecipes_webp
true
subrecipes_webp: stickers.json $(makeFileDir)/make.jq
mkdir -p ./stickers
jq -r -f make.jq --arg out_format '-f webp -preset:v icon -frames 1 ' --arg out_ext webp stickers.json > src/Makefile.webp.mk
$(MAKE) -C src -f Makefile.webp.mk
subrecipes_png: stickers.json $(makeFileDir)/make.jq
mkdir -p ./stickers
jq -r -f make.jq --arg out_format '-preset:v icon -frames 1' --arg out_ext png stickers.json > src/Makefile.png.mk
$(MAKE) -C src -f Makefile.png.mk
stickers.json:
touch stickers.json