[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1358814497-8112-1-git-send-email-sathish.kuppuswamy@intel.com>
Date: Mon, 21 Jan 2013 16:28:17 -0800
From: Sathish Kuppuswamy <sathish.kuppuswamy@...el.com>
To: linux-kernel@...r.kernel.org, len.brown@...el.com
Cc: josh.triplett@...el.com,
Sathish Kuppuswamy <sathish.kuppuswamy@...el.com>
Subject: turbostat:add support for DESTDIR in make install
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@...el.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists