[Makefile] Do not rely on variables for commands
This commit is contained in:
parent
a31c0dba00
commit
158b3d54fa
1 changed files with 2 additions and 5 deletions
7
Makefile
7
Makefile
|
@ -1,6 +1,3 @@
|
|||
RSVGCONVERT := $(shell command -v rsvg-convert 2> /dev/null)
|
||||
OPTIPNG := $(shell command -v optipng 2> /dev/null)
|
||||
|
||||
.PHONY: all png clean
|
||||
|
||||
all: png
|
||||
|
@ -9,8 +6,8 @@ png: images/boardicons.png images/icons/admin.png images/icons/alerts.png images
|
|||
|
||||
%.png: %.svg
|
||||
mkdir --parents $(shell dirname $@)
|
||||
$(RSVGCONVERT) $< --output $@
|
||||
$(OPTIPNG) -o7 -quiet $@
|
||||
rsvg-convert $< --output $@
|
||||
optipng -o7 -quiet $@
|
||||
|
||||
clean:
|
||||
rm --force images/boardicons.png images/icons/admin.png images/icons/alerts.png images/icons/home.png images/icons/login.png images/icons/members.png images/icons/moderate.png images/icons/pm.png images/icons/profile.png images/icons/recent.png images/icons/search.png images/icons/unread_replies.png images/icons/unread.png
|
||||
|
|
Loading…
Reference in a new issue