From b72cdb75d8a313adeeb09dc695ad3955cf2f0759 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 22 Jan 2016 23:39:33 +0000 Subject: [PATCH] build: install nm-settings-ifcfg-rh.5 man page conditionally Only install nm-settings-ifcfg-rh.5 man page if the ifcfg-rh configuration plugin has been enabled. But still add them to EXTRA_DIST so that the source tarball contains the generated man-file, but it isn't installed. https://bugzilla.gnome.org/show_bug.cgi?id=759823 --- man/Makefile.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/man/Makefile.am b/man/Makefile.am index 85b6f3a926..be33eeb235 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -78,8 +78,13 @@ docbook_generated_man_pages = \ docbook_autogenerated_man_pages = \ nm-settings.5 \ - nm-settings-keyfile.5 \ - nm-settings-ifcfg-rh.5 + nm-settings-keyfile.5 + +if CONFIG_PLUGIN_IFCFG_RH +docbook_autogenerated_man_pages += nm-settings-ifcfg-rh.5 +else +EXTRA_DIST += nm-settings-ifcfg-rh.5 +endif EXTRA_DIST += \ nm-settings.xml \