blob: 80dabb76af87544e5bf2903926ac2cdf54444012 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-aa,v 1.3 2007/10/26 15:06:19 joerg Exp $
--- Makefile.orig 2003-01-04 13:53:01.000000000 +0100
+++ Makefile
@@ -10,13 +10,15 @@ VERSION=2.1.11
#SUFFIX=-pre2
DATE=2003-01-04
-PREFIX=/usr/local
+#PREFIX=/usr/local
SBINDIR=$(PREFIX)/sbin
-SHAREDIR=$(PREFIX)/share
-MANDIR=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
+SHAREDIR=$(PREFIX)/share/pciutils
+MANDIR=$(PREFIX)/${PKGMANDIR}
INSTALL=install
-DIRINSTALL=install -d
+DIRINSTALL=$(INSTALL) -d
PCILIB=libpci.a
+LIBDIR=$(PREFIX)/lib
+INCLUDEDIR=$(PREFIX)/include/pciutils
ifeq ($(shell uname),NetBSD)
PCILIB=libpciutils.a
@@ -58,11 +60,18 @@ clean:
install: all
# -c is ignored on Linux, but required on FreeBSD
- $(DIRINSTALL) -m 755 $(SBINDIR) $(SHAREDIR) $(MANDIR)/man8
- $(INSTALL) -c -m 755 -s lspci setpci $(SBINDIR)
- $(INSTALL) -c -m 755 update-pciids $(SBINDIR)
- $(INSTALL) -c -m 644 pci.ids $(SHAREDIR)
- $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(MANDIR)/man8
+ $(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR)
+ $(DIRINSTALL) -m 755 $(DESTDIR)$(SHAREDIR)
+ $(DIRINSTALL) -m 755 $(DESTDIR)$(MANDIR)/man8
+ $(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR)
+ $(DIRINSTALL) -m 755 $(DESTDIR)$(INCLUDEDIR)
+ $(INSTALL) -c -m 755 -s lspci setpci $(DESTDIR)$(SBINDIR)
+ $(INSTALL) -c -m 755 update-pciids $(DESTDIR)$(SBINDIR)
+ $(INSTALL) -c -m 644 pci.ids $(DESTDIR)$(SHAREDIR)
+ $(INSTALL) -c -m 644 README $(DESTDIR)$(SHAREDIR)
+ $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8
+ $(INSTALL) -c -m 444 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
+ $(INSTALL) -c -m 644 lib/pci.h lib/header.h lib/config.h $(DESTDIR)$(INCLUDEDIR)
uninstall: all
rm -f $(SBINDIR)/lspci $(SBINDIR)/setpci $(SBINDIR)/update-pciids
|