summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2016-01-22 23:39:33 +0000
committerThomas Haller <thaller@redhat.com>2016-01-23 16:47:03 +0100
commitb72cdb75d8a313adeeb09dc695ad3955cf2f0759 (patch)
treebeb24706ead8530926bca88453c943fbd6d72094
parentc94a9372fafd138a05fe5790c7bcd7980868460e (diff)
downloadNetworkManager-b72cdb75d8a313adeeb09dc695ad3955cf2f0759.tar.gz
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
-rw-r--r--man/Makefile.am9
1 files 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 \