From 158b3d54fa719c05547145de70f6d90b68af43bd Mon Sep 17 00:00:00 2001 From: Antoine Le Gonidec Date: Wed, 24 Jul 2024 16:00:35 +0200 Subject: [PATCH] [Makefile] Do not rely on variables for commands --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b4b6340..cd4ef4f 100644 --- a/Makefile +++ b/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