--- ./Makefile.orig 2013-09-19 04:36:32.000000000 +0200 +++ ./Makefile 2014-02-18 11:18:22.000000000 +0100 @@ -146,10 +146,10 @@ # Install all target files (binaries, libraries, docs, etc.) install: all - ${MKDIR} -p ${PREFIX}/bin ${PREFIX}/man/man1 ${DATADIR}/include - ${INSTALL} -s -m 0555 ${BIN} ${PREFIX}/bin - ${INSTALL} -m 0444 ${MAN} ${MANPREFIX}/man/man1 - ${CP} -R Include/* ${DATADIR}/include + ${MKDIR} -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man/man1 ${DESTDIR}${DATADIR}/include + ${INSTALL} -s -m 0555 ${BIN} ${DESTDIR}${PREFIX}/bin + ${INSTALL} -m 0444 ${MAN} ${DESTDIR}${MANPREFIX}/man/man1 + ${CP} -R Include/* ${DESTDIR}${DATADIR}/include ############################################################################ # Remove all installed files