From b6356ba50fe860ff082cdd371b7decb7065d266f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 26 Dec 2021 22:13:40 +0100 Subject: [PATCH] Makefile: Update uninstall target to match all install* targets --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 27e0c08..82292a7 100644 --- a/Makefile +++ b/Makefile @@ -160,8 +160,17 @@ uninstall: all rm -f $(DESTDIR)$(IDSDIR)/$(PCI_IDS) rm -f $(DESTDIR)$(MANDIR)/man8/lspci.8 $(DESTDIR)$(MANDIR)/man8/setpci.8 $(DESTDIR)$(MANDIR)/man8/update-pciids.8 rm -f $(DESTDIR)$(MANDIR)/man7/pcilib.7 + rm -f $(DESTDIR)$(MANDIR)/man5/pci.ids.5 + rm -f $(DESTDIR)$(LIBDIR)/$(PCILIB) + rm -f $(DESTDIR)$(PKGCFDIR)/$(PCILIBPC) + rm -f $(addprefix $(DESTDIR)$(INCDIR)/pci/,$(notdir $(PCIINC_INS))) ifeq ($(SHARED),yes) - rm -f $(DESTDIR)$(LIBDIR)/$(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so$(ABI_VERSION) + rm -f $(DESTDIR)$(LIBDIR)/$(LIBNAME).$(LIBEXT) +ifeq ($(LIBEXT),dylib) + rm -f $(DESTDIR)$(LIBDIR)/$(LIBNAME)$(ABI_VERSION).$(LIBEXT) +else + rm -f $(DESTDIR)$(LIBDIR)/$(LIBNAME).$(LIBEXT)$(ABI_VERSION) +endif endif pci.ids.gz: pci.ids -- 2.39.2