From d7e235c178979ef966c228e086a20752d9264483 Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Sun, 4 Feb 2018 20:40:16 +0100 Subject: [PATCH] Makefile: "which" is not portable It was pointed out by Gentoo QA that "type -P" is a better choice. Signed-off-by: Kai Krakow --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 37e231d..935edae 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ LIBEXEC_PREFIX ?= $(LIB_PREFIX)/bees SYSTEMD_SYSTEM_UNIT_DIR ?= $(shell pkg-config systemd --variable=systemdsystemunitdir) -MARKDOWN := $(firstword $(shell which markdown markdown2 markdown_py 2>/dev/null || echo markdown)) +MARKDOWN := $(firstword $(shell type -P markdown markdown2 markdown_py 2>/dev/null || echo markdown)) # allow local configuration to override above variables -include localconf