]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: Only distribute sanlock manpage if WITH_SANLOCK
authorCole Robinson <crobinso@redhat.com>
Wed, 18 Dec 2019 19:46:16 +0000 (14:46 -0500)
committerCole Robinson <crobinso@redhat.com>
Wed, 18 Dec 2019 21:39:31 +0000 (16:39 -0500)
This fixes mingw-libvirt RPM build

Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
docs/Makefile.am

index eb8de80b9c8b7816bc7f61e306cdbadd35556ac7..66f164a1ac67adaebf8eed31f90556aaf460f15a 100644 (file)
@@ -214,9 +214,7 @@ manpages7_rst = \
   $(KEYCODES:%=manpages/virkeycode-%.rst) \
   $(KEYNAMES:%=manpages/virkeyname-%.rst) \
   $(NULL)
-manpages8_rst = \
-  manpages/virt-sanlock-cleanup.rst \
-  $(NULL)
+manpages8_rst = $(NULL)
 manpages_rst += \
   $(manpages1_rst) \
   $(manpages7_rst) \
@@ -245,6 +243,11 @@ if WITH_LOGIN_SHELL
 else ! WITH_LOGIN_SHELL
   manpages_rst += manpages/virt-login-shell.rst
 endif ! WITH_LOGIN_SHELL
+if WITH_SANLOCK
+  manpages8_rst += manpages/virt-sanlock-cleanup.rst
+else ! WITH_SANLOCK
+  manpages_rst += manpages/virt-sanlock-cleanup.rst
+endif ! WITH_SANLOCK
 manpages_rst_html_in = \
   $(manpages_rst:%.rst=%.html.in)
 manpages_html = \