fix "no rst2man found!" build error on debian and ubuntu

This commit is contained in:
Igor Velkov 2021-10-18 23:37:40 +03:00 committed by Kent Overstreet
parent 6e46ae07fa
commit a77c35a1c4

View File

@ -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