build: install nm-settings-ifcfg-rh.5 man page conditionally
authorMichael Biebl <biebl@debian.org>
Fri, 22 Jan 2016 23:39:33 +0000 (23:39 +0000)
committerThomas Haller <thaller@redhat.com>
Sat, 23 Jan 2016 15:47:03 +0000 (16:47 +0100)
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

index 85b6f3a..be33eeb 100644 (file)
@@ -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                                                 \