maps/images/Makefile
2023-11-24 18:26:24 +01:00

17 lines
390 B
Makefile

SOURCES := $(wildcard src/*.xcf)
FILES :=$(subst src/, dist/, $(SOURCES))
PNGS := $(FILES:.xcf=.png)
JPGS := $(FILES:.xcf=.jpg)
WEBPS := $(FILES:.xcf=.webp)
%.jpg: %.png
convert $< $@
%.webp: %.png
convert $< -quality 80 -define webp:image-hint=photo -define webp:auto-filter=true $@
dist/%.png: src/%.xcf
xcf2png $< -o $@
convert $@ -trim +repage $@
all: $(PNGS) $(JPGS) $(WEBPS)