From: Igor Velkov Date: Mon, 18 Oct 2021 20:37:40 +0000 (+0300) Subject: fix "no rst2man found!" build error on debian and ubuntu X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a77c35a1c40c623833bdaca3286fae318a43255a;p=bcachefs-tools-debian fix "no rst2man found!" build error on debian and ubuntu --- diff --git a/Makefile b/Makefile index e852381..ee3f8fb 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