[Makefile] Add a clean action to remove the generated icons

This commit is contained in:
Antoine Le Gonidec 2024-07-24 11:56:49 +02:00
parent ab44fe0a6d
commit e9b7333cfa
Signed by: vv221
GPG key ID: 636B78F91CEB80D8

View file

@ -1,7 +1,7 @@
RSVGCONVERT := $(shell command -v rsvg-convert 2> /dev/null) RSVGCONVERT := $(shell command -v rsvg-convert 2> /dev/null)
OPTIPNG := $(shell command -v optipng 2> /dev/null) OPTIPNG := $(shell command -v optipng 2> /dev/null)
.PHONY: all png .PHONY: all png clean
all: png all: png
@ -11,3 +11,6 @@ png: admin.png alerts.png home.png login.png members.png moderate.png pm.png pro
mkdir --parents $(shell dirname $@) mkdir --parents $(shell dirname $@)
$(RSVGCONVERT) $< --output $@ $(RSVGCONVERT) $< --output $@
$(OPTIPNG) -o7 -quiet $@ $(OPTIPNG) -o7 -quiet $@
clean:
rm --force admin.png alerts.png home.png login.png members.png moderate.png pm.png profile.png recent.png search.png unread_replies.png unread.png