Skip to content

Commit

Permalink
Install documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Dunham committed Jan 21, 2015
1 parent 71b225c commit 741e5e4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ PREFIX ?= /usr
LIBDIR ?= ${PREFIX}/lib
BINDIR ?= ${PREFIX}/bin
INCDIR ?= ${PREFIX}/include
DATAROOTDIR ?= ${PREFIX}/share
DOCDIR ?= ${DATAROOTDIR}/doc/libsysdev
MANDIR ?= ${DATAROOTDIR}/man

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

install: ${LIBS} devinfo libsysdev.pc
echo "Making directories..."
install -d -m 0755 ${DESTDIR}${LIBDIR}/pkgconfig
install -d -m 0755 ${DESTDIR}${BINDIR}
install -d -m 0755 ${DESTDIR}${INCDIR}/libsysdev
install -d -m 0755 ${DESTDIR}${DOCDIR}
install -d -m 0755 ${DESTDIR}${MANDIR}/man1
install -d -m 0755 ${DESTDIR}${MANDIR}/man3
echo "Installing libs..."
# installing the shared lib?
echo ${LIBS} | grep libsysdev.so && \
install -m 0644 libsysdev.so* ${DESTDIR}${LIBDIR}/
Expand All @@ -51,7 +59,12 @@ install: ${LIBS} devinfo libsysdev.pc
install -m 0644 libsysdev.pc ${DESTDIR}${LIBDIR}/pkgconfig/
install -m 0644 libsysdev/sysdev.h \
${DESTDIR}${INCDIR}/libsysdev/sysdev.h
echo "Installing utilities..."
install -m 0755 devinfo ${DESTDIR}${BINDIR}
echo "Installing documentation..."
install -m 0644 libsysdev.3 ${DESTDIR}${MANDIR}/man3/
install -m 0644 util/devinfo.1 ${DESTDIR}${MANDIR}/man1/
install -m 0644 README LICENSE ${DESTDIR}${DOCDIR}/


clean:
Expand Down

0 comments on commit 741e5e4

Please sign in to comment.