Avoid building the same path several times. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- 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 d9f559dce5..0633b05768 100644 --- a/src/remote/Makefile.inc.am +++ b/src/remote/Makefile.inc.am @@ -193,14 +193,16 @@ check-augeas-remote: test_libvirtd.aug if WITH_SYSCTL # Use $(prefix)/lib rather than $(libdir), since man sysctl.d insists on # /usr/lib/sysctl.d/ even when libdir is /usr/lib64 +sysctldir = $(prefix)/lib/sysctl.d + install-sysctl: - $(MKDIR_P) $(DESTDIR)$(prefix)/lib/sysctl.d + $(MKDIR_P) $(DESTDIR)$(sysctldir) $(INSTALL_DATA) $(srcdir)/remote/libvirtd.sysctl \ - $(DESTDIR)$(prefix)/lib/sysctl.d/60-libvirtd.conf + $(DESTDIR)$(sysctldir)/60-libvirtd.conf uninstall-sysctl: - rm -f $(DESTDIR)$(prefix)/lib/sysctl.d/60-libvirtd.conf - rmdir $(DESTDIR)$(prefix)/lib/sysctl.d || : + rm -f $(DESTDIR)$(sysctldir)/60-libvirtd.conf + rmdir $(DESTDIR)$(sysctldir) || : else ! WITH_SYSCTL install-sysctl: uninstall-sysctl: -- 2.20.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list