lkml.org 
[lkml]   [2013]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectturbostat:add support for DESTDIR in make install
Date
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


\
 
 \ /
  Last update: 2013-01-22 02:21    [W:0.050 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site