Messages in this thread Patch in this message | | | From | Sathish Kuppuswamy <> | Subject | turbostat:add support for DESTDIR in make install | Date | Mon, 21 Jan 2013 16:28:17 -0800 |
| |
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 <sathish.kuppuswamy@intel.com> --- 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
| |