aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-06-17 08:59:33 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-27 18:37:04 -0400
commitac485cb4b3b79fb7ef979cb243ee16e1a1ffa767 (patch)
treee0540df0f559feb2619cf79b3cdf73cf20632420 /tools
parent4c2e07c6a29e0129e975727b9f57eede813eea85 (diff)
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')
-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 @@
1CC = $(CROSS_COMPILE)gcc 1CC = $(CROSS_COMPILE)gcc
2BUILD_OUTPUT := $(CURDIR) 2BUILD_OUTPUT := $(CURDIR)
3PREFIX := /usr 3PREFIX ?= /usr
4DESTDIR := 4DESTDIR ?=
5 5
6ifeq ("$(origin O)", "command line") 6ifeq ("$(origin O)", "command line")
7 BUILD_OUTPUT := $(O) 7 BUILD_OUTPUT := $(O)