From e4b04ae15363ee8b2159dbc2586fbf93792598f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 17 Sep 2024 14:30:57 +0200 Subject: doc,build: Fix "make install" if yat2m isn't available * configure.ac: Add hint for YAT2M variable. Set HAVE_YAT2M if yat2m was found. * doc/Makefile.am (myman_pages): Set to empty string if yat2m isn't available -- --- configure.ac | 2 ++ doc/Makefile.am | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index f64f252d..648a0801 100644 --- a/configure.ac +++ b/configure.ac @@ -105,6 +105,8 @@ AM_SILENT_RULES AC_ARG_VAR(SYSROOT,[locate config scripts also below that directory]) AC_PATH_PROG(YAT2M, [yat2m], [:]) +AC_ARG_VAR(YAT2M, [tool to convert texi to man pages]) +AM_CONDITIONAL(HAVE_YAT2M, test "$ac_cv_path_YAT2M" != ":") # Enable GNU extensions on systems that have them. AC_USE_SYSTEM_EXTENSIONS diff --git a/doc/Makefile.am b/doc/Makefile.am index cee802d5..584a6f85 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -31,7 +31,11 @@ BUILT_SOURCES = defsincdate defs.inc YAT2M_OPTIONS = -I $(srcdir) --release "GPGME @PACKAGE_VERSION@" myman_sources = gpgme-json.texi +if HAVE_YAT2M myman_pages = gpgme-json.1 +else +myman_pages = +endif man_MANS = $(myman_pages) -- cgit v1.2.3