From 2e0ac6390327e387e9b94e50080d13fd95f545d6 Mon Sep 17 00:00:00 2001 From: Klaus Wenninger Date: Mon, 16 Aug 2021 16:42:51 +0200 Subject: [PATCH] Build: manpages: using help2man check exit-code of tools --- mk/common.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mk/common.mk b/mk/common.mk index aa59feb..c3d1993 100644 --- a/mk/common.mk +++ b/mk/common.mk @@ -68,6 +68,12 @@ HELP2MAN_ARGS = -N --section 8 --name "Part of the Pacemaker cluster resource ma # and all wrappers to C code. %.8: % $(MAN8DEPS) $(AM_V_at)chmod a+x $(abs_builddir)/$< + PATH=$(abs_builddir):$$PATH $(abs_builddir)/$< --version >/dev/null + if [ -f $(abs_srcdir)/$@.inc ]; then \ + PATH=$(abs_builddir):$$PATH $(abs_builddir)/$< --help-all >/dev/null; \ + else \ + PATH=$(abs_builddir):$$PATH $(abs_builddir)/$< --help >/dev/null; \ + fi $(AM_V_MAN)if [ -f $(abs_srcdir)/$@.inc ]; then \ PATH=$(abs_builddir):$$PATH $(HELP2MAN) $(HELP2MAN_ARGS) \ -h --help-all \ -- 1.8.3.1