No need to have two conditional blocks.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/remote/Makefile.inc.am | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/remote/Makefile.inc.am b/src/remote/Makefile.inc.am
index d188c4e348..04a2ec8cc0 100644
--- a/src/remote/Makefile.inc.am
+++ b/src/remote/Makefile.inc.am
@@ -123,10 +123,6 @@ conf_DATA += remote/libvirtd.conf
CLEANFILES += test_libvirtd.aug
-if WITH_POLKIT
-policydir = $(datadir)/polkit-1/actions
-endif WITH_POLKIT
-
man8_MANS += libvirtd.8
libvirtd_SOURCES = $(LIBVIRTD_SOURCES)
@@ -211,6 +207,8 @@ uninstall-sysctl:
endif ! WITH_SYSCTL
if WITH_POLKIT
+policydir = $(datadir)/polkit-1/actions
+
install-polkit::
$(MKDIR_P) $(DESTDIR)$(policydir)
$(INSTALL_DATA) $(srcdir)/remote/libvirtd.policy \
--
2.20.1