Skip to content

Commit 741e5e4

Browse files
author
Isaac Dunham
committed
Install documentation
1 parent 71b225c commit 741e5e4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ PREFIX ?= /usr
99
LIBDIR ?= ${PREFIX}/lib
1010
BINDIR ?= ${PREFIX}/bin
1111
INCDIR ?= ${PREFIX}/include
12+
DATAROOTDIR ?= ${PREFIX}/share
13+
DOCDIR ?= ${DATAROOTDIR}/doc/libsysdev
14+
MANDIR ?= ${DATAROOTDIR}/man
1215

1316
# set AR and CC if you're cross-compiling
1417
AR ?= ar
@@ -40,9 +43,14 @@ SOOBJS = getprodids.lo \
4043
all: ${LIBS} devinfo
4144

4245
install: ${LIBS} devinfo libsysdev.pc
46+
echo "Making directories..."
4347
install -d -m 0755 ${DESTDIR}${LIBDIR}/pkgconfig
4448
install -d -m 0755 ${DESTDIR}${BINDIR}
4549
install -d -m 0755 ${DESTDIR}${INCDIR}/libsysdev
50+
install -d -m 0755 ${DESTDIR}${DOCDIR}
51+
install -d -m 0755 ${DESTDIR}${MANDIR}/man1
52+
install -d -m 0755 ${DESTDIR}${MANDIR}/man3
53+
echo "Installing libs..."
4654
# installing the shared lib?
4755
echo ${LIBS} | grep libsysdev.so && \
4856
install -m 0644 libsysdev.so* ${DESTDIR}${LIBDIR}/
@@ -51,7 +59,12 @@ install: ${LIBS} devinfo libsysdev.pc
5159
install -m 0644 libsysdev.pc ${DESTDIR}${LIBDIR}/pkgconfig/
5260
install -m 0644 libsysdev/sysdev.h \
5361
${DESTDIR}${INCDIR}/libsysdev/sysdev.h
62+
echo "Installing utilities..."
5463
install -m 0755 devinfo ${DESTDIR}${BINDIR}
64+
echo "Installing documentation..."
65+
install -m 0644 libsysdev.3 ${DESTDIR}${MANDIR}/man3/
66+
install -m 0644 util/devinfo.1 ${DESTDIR}${MANDIR}/man1/
67+
install -m 0644 README LICENSE ${DESTDIR}${DOCDIR}/
5568

5669

5770
clean:

0 commit comments

Comments
 (0)