From a77c35a1c40c623833bdaca3286fae318a43255a Mon Sep 17 00:00:00 2001 From: Igor Velkov Date: Mon, 18 Oct 2021 23:37:40 +0300 Subject: [PATCH] fix "no rst2man found!" build error on debian and ubuntu --- Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index e852381d..ee3f8fbc 100644 --- a/Makefile +++ b/Makefile @@ -66,14 +66,12 @@ else INITRAMFS_DIR=/etc/initramfs-tools endif -STATUS:=$(shell rst2man -V 2>/dev/null; echo $$?) -ifeq ($(STATUS),0) - RST2MAN=rst2man -endif - -STATUS:=$(shell rst2man.py -V 2>/dev/null; echo $$?) -ifeq ($(STATUS),0) - RST2MAN=rst2man.py +RST2MAN:=$(shell which rst2man) +ifeq ($(RST2MAN),) + RST2MAN:=$(shell which rst2man.py) + ifeq ($(RST2MAN),) + @echo "WARNING: no rst2man found! Man page not generated." + endif endif .PHONY: all