aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-09-17 12:30:57 +0000
committerIngo Klöcker <[email protected]>2024-09-17 12:30:57 +0000
commite4b04ae15363ee8b2159dbc2586fbf93792598f6 (patch)
treea70f9ee4450e879d801ab0e0f589dc181ca99106
parentdoc: Provide a man page for gpgme-json. (diff)
downloadgpgme-e4b04ae15363ee8b2159dbc2586fbf93792598f6.tar.gz
gpgme-e4b04ae15363ee8b2159dbc2586fbf93792598f6.zip
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 --
-rw-r--r--configure.ac2
-rw-r--r--doc/Makefile.am4
2 files changed, 6 insertions, 0 deletions
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)