remote: Move polkitdir definition

No need to have two conditional blocks.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Andrea Bolognani 2019-01-09 18:08:57 +01:00
parent 7cfd1fbb13
commit 7f65248ce5
1 changed files with 2 additions and 4 deletions

View File

@ -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 \