Josh Boyer b080939
diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile
Josh Boyer b080939
index fd8e1f1..7af5e8c 100644
Josh Boyer b080939
--- a/tools/power/x86/turbostat/Makefile
Josh Boyer b080939
+++ b/tools/power/x86/turbostat/Makefile
Josh Boyer b080939
@@ -1,8 +1,10 @@
Josh Boyer b080939
+DESTDIR ?=
Josh Boyer b080939
+
Josh Boyer b080939
 turbostat : turbostat.c
Josh Boyer b080939
 
Josh Boyer b080939
 clean :
Josh Boyer b080939
 	rm -f turbostat
Josh Boyer b080939
 
Josh Boyer b080939
 install :
Josh Boyer b080939
-	install turbostat /usr/bin/turbostat
Josh Boyer b080939
-	install turbostat.8 /usr/share/man/man8
Josh Boyer b080939
+	install turbostat ${DESTDIR}/usr/bin/turbostat
Josh Boyer b080939
+	install turbostat.8 ${DESTDIR}/usr/share/man/man8
Josh Boyer b080939
diff --git a/tools/power/x86/x86_energy_perf_policy/Makefile b/tools/power/x86/x86_energy_perf_policy/Makefile
Josh Boyer b080939
index f458237..f9824f0 100644
Josh Boyer b080939
--- a/tools/power/x86/x86_energy_perf_policy/Makefile
Josh Boyer b080939
+++ b/tools/power/x86/x86_energy_perf_policy/Makefile
Josh Boyer b080939
@@ -1,8 +1,10 @@
Josh Boyer b080939
+DESTDIR ?= 
Josh Boyer b080939
+
Josh Boyer b080939
 x86_energy_perf_policy : x86_energy_perf_policy.c
Josh Boyer b080939
 
Josh Boyer b080939
 clean :
Josh Boyer b080939
 	rm -f x86_energy_perf_policy
Josh Boyer b080939
 
Josh Boyer b080939
 install :
Josh Boyer b080939
-	install x86_energy_perf_policy /usr/bin/
Josh Boyer b080939
-	install x86_energy_perf_policy.8 /usr/share/man/man8/
Josh Boyer b080939
+	install x86_energy_perf_policy ${DESTDIR}/usr/bin/
Josh Boyer b080939
+	install x86_energy_perf_policy.8 ${DESTDIR}/usr/share/man/man8/