From: Martin Mares Date: Sun, 26 Dec 2021 21:13:40 +0000 (+0100) Subject: Makefile: Update uninstall target to match all install* targets X-Git-Tag: v3.8.0~95 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b6356ba50fe860ff082cdd371b7decb7065d266f;p=pciutils.git Makefile: Update uninstall target to match all install* targets --- 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