mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-09 00:00:04 +03:00
fixup! rst2man detection hangs
rst2man tend to hang when called without arguments, so a small -V is appended to print the version. Also, make sure we found at least one rst2man executable Signed-off-by: jpsollie <janpieter.sollie@edpnet.be>
This commit is contained in:
parent
d6415ce25b
commit
cb09c48a26
8
Makefile
8
Makefile
@ -61,18 +61,22 @@ else
|
|||||||
INITRAMFS_DIR=/etc/initramfs-tools
|
INITRAMFS_DIR=/etc/initramfs-tools
|
||||||
endif
|
endif
|
||||||
|
|
||||||
var := $(shell rst2man 2>/dev/null)
|
var := $(shell rst2man -V 2>/dev/null)
|
||||||
ifeq ($(.SHELLSTATUS),0)
|
ifeq ($(.SHELLSTATUS),0)
|
||||||
RST2MAN=rst2man
|
RST2MAN=rst2man
|
||||||
endif
|
endif
|
||||||
|
|
||||||
var := $(shell rst2man.py 2>/dev/null)
|
var := $(shell rst2man.py -V 2>/dev/null)
|
||||||
ifeq ($(.SHELLSTATUS),0)
|
ifeq ($(.SHELLSTATUS),0)
|
||||||
RST2MAN=rst2man.py
|
RST2MAN=rst2man.py
|
||||||
endif
|
endif
|
||||||
|
|
||||||
undefine var
|
undefine var
|
||||||
|
|
||||||
|
ifeq (,$(RST2MAN))
|
||||||
|
@echo "WARNING: no RST2MAN found!"
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: bcachefs bcachefs.5
|
all: bcachefs bcachefs.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user