From e79deca807f5f1af4026004f6e6da8ab15facb40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?SZ=20Lin=20=28=E6=9E=97=E4=B8=8A=E6=99=BA=29?= Date: Mon, 9 Nov 2020 11:24:33 +0800 Subject: [PATCH] Don't run help2man during cross builds and use pre-generated manual pages instead - Thanks to Helmut Grohne Forwarded: no Gbp-Pq: Name Don-t-run-help2man-during-cross-builds-and-use-pre-genera.patch --- configure.ac | 2 +- man/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index cd337ff..921b7c4 100644 --- a/configure.ac +++ b/configure.ac @@ -213,7 +213,7 @@ if test "x$cross_compiling" = xno then AC_CHECK_PROG([has_help2man], [help2man], [true], [false]) fi -AM_CONDITIONAL([WITH_MANPAGES], [test "x$has_help2man" = xtrue]) +AM_CONDITIONAL([WITH_HELP2MAN], [test "x$has_help2man" = xtrue]) if test "x$has_help2man" = xfalse then AC_MSG_NOTICE([help2man not found - man pages cannot be generated automatically]) diff --git a/man/Makefile.am b/man/Makefile.am index 0f9c644..70a0f4f 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -6,10 +6,10 @@ # Copyright (C) 2019 Bartosz Golaszewski # -if WITH_MANPAGES - dist_man1_MANS = gpiodetect.man gpioinfo.man gpioget.man gpioset.man gpiofind.man gpiomon.man +if WITH_HELP2MAN + %.man: $(top_builddir)/tools/$(*F) help2man $(top_builddir)/tools/$(*F) --include=$(srcdir)/template --output=$(builddir)/$@ --no-info -- 2.30.2