summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2022-02-09 21:20:50 +0100
committerMartin Mares <mj@ucw.cz>2022-02-09 21:20:50 +0100
commit0b307156c92f61c1a02d232f4c6ed17e888de9a9 (patch)
tree47b66e25f2f0f1dfa79eeadfa6d0b4424b054f00 /Makefile
parent53e73b36c999ef091a51c0b6803604ce4f1ff315 (diff)
downloadpciutils-0b307156c92f61c1a02d232f4c6ed17e888de9a9.tar.gz
Install lspci to /usr/bin on Linux systems
On Linux, lspci is useful even for ordinary users, although only a subset of features is available.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index aac99fc..e9afb57 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,7 @@ ABI_VERSION=.3
# Installation directories
PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
SBINDIR=$(PREFIX)/sbin
SHAREDIR=$(PREFIX)/share
IDSDIR=$(SHAREDIR)
@@ -129,8 +130,9 @@ distclean: clean
install: all
# -c is ignored on Linux, but required on FreeBSD
- $(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7 $(DESTDIR)/$(MANDIR)/man5
- $(INSTALL) -c -m 755 $(STRIP) lspci$(EXEEXT) setpci$(EXEEXT) $(DESTDIR)$(SBINDIR)
+ $(DIRINSTALL) -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7 $(DESTDIR)/$(MANDIR)/man5
+ $(INSTALL) -c -m 755 $(STRIP) lspci$(EXEEXT) $(DESTDIR)$(LSPCIDIR)
+ $(INSTALL) -c -m 755 $(STRIP) setpci$(EXEEXT) $(DESTDIR)$(SBINDIR)
$(INSTALL) -c -m 755 update-pciids $(DESTDIR)$(SBINDIR)
$(INSTALL) -c -m 644 $(PCI_IDS) $(DESTDIR)$(IDSDIR)
$(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8