summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2008-02-18 17:38:28 +0100
committerMartin Mares <mj@ucw.cz>2008-02-18 17:38:28 +0100
commit349c0fe9cf88d42218e8015e2353c57be1cc1f32 (patch)
treeb2aa482cde2104c84fd3a8bdd5525dc70c9f56b3
parent5ad89ed991b7b32abb0339c2984628ef8a8c85b9 (diff)
downloadpciutils-349c0fe9cf88d42218e8015e2353c57be1cc1f32.tar.gz
When installing the shared library, create the appropriate symlinks as well.
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ec46ba0..95f62e6 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,7 @@ install: all
ifeq ($(SHARED),yes)
$(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR)
$(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
+ ln -sf $(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so$(ABI_VERSION)
endif
install-lib: $(PCIINC_INS) lib/$(PCILIB) lib/$(PCILIBPC)
@@ -106,12 +107,18 @@ install-lib: $(PCIINC_INS) lib/$(PCILIB) lib/$(PCILIBPC)
$(INSTALL) -c -m 644 $(PCIINC_INS) $(DESTDIR)$(INCDIR)/pci
$(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
$(INSTALL) -c -m 644 lib/$(PCILIBPC) $(DESTDIR)$(PKGCFDIR)
+ifeq ($(SHARED),yes)
+ ln -sf $(LIBNAME).so$(ABI_VERSION) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so
+endif
uninstall: all
rm -f $(DESTDIR)$(SBINDIR)/lspci $(DESTDIR)$(SBINDIR)/setpci $(DESTDIR)$(SBINDIR)/update-pciids
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
+ifeq ($(SHARED),yes)
+ rm -f $(DESTDIR)$(LIBDIR)/$(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so$(ABI_VERSION)
+endif
pci.ids.gz: pci.ids
gzip -9 <$< >$@