From 9d295fab4e0ec55c8d52eceffd5373454929809d Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sun, 7 Jan 2018 14:20:44 -0500 Subject: [PATCH] Makefile: if multiple Markdown utilities are present, use the first one If two utilities are found, we get commands like /usr/bin/markdown /usr/bin/markdown_py README.md > README.html and that doesn't work. Signed-off-by: Zygo Blaxell --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c856be8..5da1465 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PREFIX ?= / LIBEXEC_PREFIX ?= $(PREFIX)/usr/lib/bees -MARKDOWN := $(shell which markdown markdown2 markdown_py 2>/dev/null) +MARKDOWN := $(firstword $(shell which markdown markdown2 markdown_py 2>/dev/null)) MARKDOWN ?= markdown # allow local configuration to override above variables