Adding DESTDIR makes it easier for distributions to create and build packages of turbostat as normal user. It also provides space for choosing target directory to deploy the packages
Signed-off-by: Sathish Kuppuswamy <[email protected]> --- tools/power/x86/turbostat/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile index fd8e1f1..d5eedfb 100644 --- a/tools/power/x86/turbostat/Makefile +++ b/tools/power/x86/turbostat/Makefile @@ -3,6 +3,8 @@ turbostat : turbostat.c clean : rm -f turbostat -install : - install turbostat /usr/bin/turbostat - install turbostat.8 /usr/share/man/man8 +install : + mkdir -p ${DESTDIR}/usr/bin + mkdir -p ${DESTDIR}/usr/share/man/man8 + install turbostat ${DESTDIR}/usr/bin/turbostat + install turbostat.8 ${DESTDIR}/usr/share/man/man8 -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

