summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2012-10-30 17:38:05 (GMT)
committerLen Brown <len.brown@intel.com>2012-11-30 06:09:45 (GMT)
commit55f1f545f709a6023371848028a3029118855576 (patch)
tree5331928fe5745ff09cbfaa41fccf48f137965e43 /tools
parentee0778a3015370779f603d2b6119a6ec2b1c811a (diff)
downloadlinux-55f1f545f709a6023371848028a3029118855576.tar.xz
tools: Allow tools to be installed in a user specified location
When building x86_energy_perf_policy or turbostat within the confines of a packaging system such as RPM, we need to be able to have it install to the buildroot and not the root filesystem of the build machine. This adds a DESTDIR variable that when set will act as a prefix for the install location of these tools. Signed-off-by: Josh Boyer <jwboyer@redhat.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/x86_energy_perf_policy/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/power/x86/x86_energy_perf_policy/Makefile b/tools/power/x86/x86_energy_perf_policy/Makefile
index f458237..971c9ff 100644
--- a/tools/power/x86/x86_energy_perf_policy/Makefile
+++ b/tools/power/x86/x86_energy_perf_policy/Makefile
@@ -1,8 +1,10 @@
+DESTDIR ?=
+
x86_energy_perf_policy : x86_energy_perf_policy.c
clean :
rm -f x86_energy_perf_policy
install :
- install x86_energy_perf_policy /usr/bin/
- install x86_energy_perf_policy.8 /usr/share/man/man8/
+ install x86_energy_perf_policy ${DESTDIR}/usr/bin/
+ install x86_energy_perf_policy.8 ${DESTDIR}/usr/share/man/man8/