linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* turbostat:add support for DESTDIR in make install
@ 2013-01-22  0:28 Sathish Kuppuswamy
  0 siblings, 0 replies; only message in thread
From: Sathish Kuppuswamy @ 2013-01-22  0:28 UTC (permalink / raw)
  To: linux-kernel, len.brown; +Cc: josh.triplett, Sathish Kuppuswamy

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-22  0:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22  0:28 turbostat:add support for DESTDIR in make install Sathish Kuppuswamy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).