summaryrefslogtreecommitdiff
path: root/tools/power
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-06-17 15:59:33 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-28 01:37:04 +0300
commitac485cb4b3b79fb7ef979cb243ee16e1a1ffa767 (patch)
treee0540df0f559feb2619cf79b3cdf73cf20632420 /tools/power
parent4c2e07c6a29e0129e975727b9f57eede813eea85 (diff)
downloadlinux-ac485cb4b3b79fb7ef979cb243ee16e1a1ffa767.tar.xz
tools/turbostat: allow user to alter DESTDIR and PREFIX
When run make -C tools DESTDIR=/my/nice/dir turbostat_install get a message install: cannot create regular file '/usr/bin/turbostat': Permission denied Allow user to alter DESTDIR and PREFIX variables. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/x86/turbostat/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile
index e367b1a85d70..8561e7ddca59 100644
--- a/tools/power/x86/turbostat/Makefile
+++ b/tools/power/x86/turbostat/Makefile
@@ -1,7 +1,7 @@
CC = $(CROSS_COMPILE)gcc
BUILD_OUTPUT := $(CURDIR)
-PREFIX := /usr
-DESTDIR :=
+PREFIX ?= /usr
+DESTDIR ?=
ifeq ("$(origin O)", "command line")
BUILD_OUTPUT := $(O)