From: Martin Mares Date: Mon, 18 Feb 2008 16:38:28 +0000 (+0100) Subject: When installing the shared library, create the appropriate symlinks as well. X-Git-Tag: v3.0.0~1^2~5 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=349c0fe9cf88d42218e8015e2353c57be1cc1f32;p=pciutils.git When installing the shared library, create the appropriate symlinks as well. --- 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 <$< >$@