From 1e6d7bd585232c2526590a348871c40d5b384ac7 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 25 Nov 2020 14:05:52 +0100 Subject: [PATCH] tools/libs: fix uninstall rule for header files This again was working right only as long as $(LIBHEADER) consisted of just one entry. Fixes: bc44e2fb3199 ("tools: add a copy of library headers in tools/include") Signed-off-by: Jan Beulich Reviewed-by: Bertrand Marquis --- tools/libs/libs.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/libs.mk b/tools/libs/libs.mk index b0e785b380..0b3381755a 100644 --- a/tools/libs/libs.mk +++ b/tools/libs/libs.mk @@ -104,7 +104,7 @@ install: build .PHONY: uninstall uninstall: rm -f $(DESTDIR)$(PKG_INSTALLDIR)/$(LIB_FILE_NAME).pc - for i in $(LIBHEADER); do rm -f $(DESTDIR)$(includedir)/$(LIBHEADER); done + for i in $(LIBHEADER); do rm -f $(DESTDIR)$(includedir)/$$i; done rm -f $(DESTDIR)$(libdir)/lib$(LIB_FILE_NAME).so rm -f $(DESTDIR)$(libdir)/lib$(LIB_FILE_NAME).so.$(MAJOR) rm -f $(DESTDIR)$(libdir)/lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) -- 2.30.2