From 23749eb634c6bf15db77b41402af65f607775281 Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Mon, 18 Sep 2017 01:29:39 +0200 Subject: [PATCH] Enable detect of markdown binary Some distributions do not provide markdown as "markdown". Let's figure out which version to use during build. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4cc6576..aacb0c5 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ PREFIX ?= / +MARKDOWN := $(shell which markdown markdown2 markdown_py 2>/dev/null) +MARKDOWN ?= markdown + default all: lib src test README.html clean: ## Cleanup @@ -19,7 +22,7 @@ test: lib src $(MAKE) -C test README.html: README.md - markdown README.md > README.html.new + $(MARKDOWN) README.md > README.html.new mv -f README.html.new README.html install: ## Install bees + libs