From c4714ce0e8ab773f9264b9a9a42ed2666c9cae86 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 19 Dec 2018 07:52:20 +0000 Subject: [PATCH] Makefile: fix 'make uninstall DESTDIR=foo' for #1311 (#1314) Uninstall was prepending `$(DESTDIR)` twice to libdir: ```Makefile LIBDIR = $(DESTDIR)$(PREFIX)/$(LIBDIRARCH) ... uninstall: ... rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).* ``` The change drops prefixing on `uninstall` site. Signed-off-by: Sergei Trofimovich --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6dfbb0a37..378f2feac 100644 --- a/Makefile +++ b/Makefile @@ -416,7 +416,7 @@ endif uninstall: rm -rf $(DESTDIR)$(INCDIR)/$(LIBNAME) - rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).* + rm -f $(LIBDIR)/lib$(LIBNAME).* rm -f $(PKGCFGDIR)/$(LIBNAME).pc rm -f $(BINDIR)/cstool