summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2021-12-26 22:13:40 +0100
committerMartin Mares <mj@ucw.cz>2021-12-26 22:13:40 +0100
commitb6356ba50fe860ff082cdd371b7decb7065d266f (patch)
tree2e8d965dc656b1f93fdb8c4b599bd2f1598eead7
parent4dae10b03a3dd8917d3da9858eaaa09331f2c836 (diff)
downloadpciutils-b6356ba50fe860ff082cdd371b7decb7065d266f.tar.gz
Makefile: Update uninstall target to match all install* targets
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
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