smf-theme/images/Makefile

16 lines
730 B
Makefile

RSVGCONVERT := $(shell command -v rsvg-convert 2> /dev/null)
OPTIPNG := $(shell command -v optipng 2> /dev/null)
.PHONY: all png clean
all: png
png: boardicons.png icons/admin.png icons/alerts.png icons/home.png icons/login.png icons/members.png icons/moderate.png icons/pm.png icons/profile.png icons/recent.png icons/search.png icons/unread_replies.png icons/unread.png
%.png: %.svg
mkdir --parents $(shell dirname $@)
$(RSVGCONVERT) $< --output $@
$(OPTIPNG) -o7 -quiet $@
clean:
rm --force boardicons.png icons/admin.png icons/alerts.png icons/home.png icons/login.png icons/members.png icons/moderate.png icons/pm.png icons/profile.png icons/recent.png icons/search.png icons/unread_replies.png icons/unread.png