From 7fb5e319d95df010f726987b68f4caffa41e409f Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Wed, 9 Jan 2019 18:22:39 +0100 Subject: [PATCH] remote: Define sasldir Avoid building the same path several times. Signed-off-by: Andrea Bolognani Reviewed-by: Erik Skultety --- src/remote/Makefile.inc.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/remote/Makefile.inc.am b/src/remote/Makefile.inc.am index a6e0f44102..3355dc68e5 100644 --- a/src/remote/Makefile.inc.am +++ b/src/remote/Makefile.inc.am @@ -248,14 +248,16 @@ endif ! WITH_LIBVIRTD # This is needed for clients too, so can't wrap in # the WITH_LIBVIRTD conditional if WITH_SASL +sasldir = $(sysconfdir)/sasl2 + install-sasl: - $(MKDIR_P) $(DESTDIR)$(sysconfdir)/sasl2/ + $(MKDIR_P) $(DESTDIR)$(sasldir) $(INSTALL_DATA) $(srcdir)/remote/libvirtd.sasl \ - $(DESTDIR)$(sysconfdir)/sasl2/libvirt.conf + $(DESTDIR)$(sasldir)/libvirt.conf uninstall-sasl: - rm -f $(DESTDIR)$(sysconfdir)/sasl2/libvirt.conf - rmdir $(DESTDIR)$(sysconfdir)/sasl2/ || : + rm -f $(DESTDIR)$(sasldir)/libvirt.conf + rmdir $(DESTDIR)$(sasldir) || : else ! WITH_SASL install-sasl: uninstall-sasl: