diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-06-17 08:59:33 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-06-27 18:37:04 -0400 |
commit | ac485cb4b3b79fb7ef979cb243ee16e1a1ffa767 (patch) | |
tree | e0540df0f559feb2619cf79b3cdf73cf20632420 /tools | |
parent | 4c2e07c6a29e0129e975727b9f57eede813eea85 (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/Makefile | 4 |
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 @@ | |||
1 | CC = $(CROSS_COMPILE)gcc | 1 | CC = $(CROSS_COMPILE)gcc |
2 | BUILD_OUTPUT := $(CURDIR) | 2 | BUILD_OUTPUT := $(CURDIR) |
3 | PREFIX := /usr | 3 | PREFIX ?= /usr |
4 | DESTDIR := | 4 | DESTDIR ?= |
5 | 5 | ||
6 | ifeq ("$(origin O)", "command line") | 6 | ifeq ("$(origin O)", "command line") |
7 | BUILD_OUTPUT := $(O) | 7 | BUILD_OUTPUT := $(O) |