mirror of
https://github.com/demostf/maps.git
synced 2026-06-03 12:44:07 +02:00
17 lines
390 B
Makefile
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)
|