[PATCH Libgpg-error] build: Fix installation of gpg-error-config.1.

Damien Goutte-Gattat dgouttegattat at incenp.org
Sat Sep 17 16:12:53 CEST 2022


* doc/Makefile.am (myman_pages): Rename man page to gpg-error-config.1
and only install if gpg-error-config itself is installed.
--

The man page embedded within doc/gpgrt.texi has recently been renamed
from gpgrt-config.1 to gpg-error-config.1, but the Makefile.am was still
referring to the old name, resulting in a `make install` failure.

Also make the man page installation conditional on
--enable-install-gpg-error-config, as there is no point in having the
man page if the corresponding tool is not installed.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat at incenp.org>
---
 doc/Makefile.am | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 46b4545..db34ba9 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -33,7 +33,11 @@ YAT2M_OPTIONS = -I $(srcdir) \
 	--release "Libgpg-error @PACKAGE_VERSION@" --source "GnuPG"
 
 myman_sources = gpgrt.texi
-myman_pages   = gpgrt-config.1
+if INSTALL_GPG_ERROR_CONFIG
+myman_pages   = gpg-error-config.1
+else
+myman_pages   =
+endif
 
 man_MANS = $(myman_pages)
 
-- 
2.35.3




More information about the Gnupg-devel mailing list