2012-02-06 17:44:21 +00:00
|
|
|
diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile
|
2012-07-30 13:33:20 +00:00
|
|
|
index f856495..984cc00 100644
|
2012-02-06 17:44:21 +00:00
|
|
|
--- a/tools/power/x86/turbostat/Makefile
|
|
|
|
+++ b/tools/power/x86/turbostat/Makefile
|
2012-07-30 13:33:20 +00:00
|
|
|
@@ -1,3 +1,5 @@
|
2012-02-06 17:44:21 +00:00
|
|
|
+DESTDIR ?=
|
|
|
|
+
|
|
|
|
turbostat : turbostat.c
|
2012-07-30 13:33:20 +00:00
|
|
|
CFLAGS += -Wall
|
2012-02-06 17:44:21 +00:00
|
|
|
|
2012-07-30 13:33:20 +00:00
|
|
|
@@ -5,5 +7,5 @@ clean :
|
2012-02-06 17:44:21 +00:00
|
|
|
rm -f turbostat
|
|
|
|
|
|
|
|
install :
|
|
|
|
- install turbostat /usr/bin/turbostat
|
|
|
|
- install turbostat.8 /usr/share/man/man8
|
|
|
|
+ install turbostat ${DESTDIR}/usr/bin/turbostat
|
|
|
|
+ install turbostat.8 ${DESTDIR}/usr/share/man/man8
|
|
|
|
diff --git a/tools/power/x86/x86_energy_perf_policy/Makefile b/tools/power/x86/x86_energy_perf_policy/Makefile
|
|
|
|
index f458237..f9824f0 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/
|