remote: Define sasldir

Avoid building the same path several times.

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:22:39 +01:00
parent 72e5285aa3
commit 7fb5e319d9

View File

@ -248,14 +248,16 @@ endif ! WITH_LIBVIRTD
# This is needed for clients too, so can't wrap in # This is needed for clients too, so can't wrap in
# the WITH_LIBVIRTD conditional # the WITH_LIBVIRTD conditional
if WITH_SASL if WITH_SASL
sasldir = $(sysconfdir)/sasl2
install-sasl: install-sasl:
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/sasl2/ $(MKDIR_P) $(DESTDIR)$(sasldir)
$(INSTALL_DATA) $(srcdir)/remote/libvirtd.sasl \ $(INSTALL_DATA) $(srcdir)/remote/libvirtd.sasl \
$(DESTDIR)$(sysconfdir)/sasl2/libvirt.conf $(DESTDIR)$(sasldir)/libvirt.conf
uninstall-sasl: uninstall-sasl:
rm -f $(DESTDIR)$(sysconfdir)/sasl2/libvirt.conf rm -f $(DESTDIR)$(sasldir)/libvirt.conf
rmdir $(DESTDIR)$(sysconfdir)/sasl2/ || : rmdir $(DESTDIR)$(sasldir) || :
else ! WITH_SASL else ! WITH_SASL
install-sasl: install-sasl:
uninstall-sasl: uninstall-sasl: