tools/libs: fix uninstall rule for header files
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Nov 2020 13:05:52 +0000 (14:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Nov 2020 13:05:52 +0000 (14:05 +0100)
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 <jbeulich@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
tools/libs/libs.mk

index b0e785b3806f0d492e20969867750d390fd77b07..0b3381755a0c9b4724e573eb4a843506f90fbef1 100644 (file)
@@ -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)