diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-06-17 14:59:33 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-06-28 00:37:04 +0200 |
commit | ac485cb4b3b79fb7ef979cb243ee16e1a1ffa767 (patch) | |
tree | e0540df0f559feb2619cf79b3cdf73cf20632420 /tools | |
parent | Linux 4.7-rc5 (diff) | |
download | linux-ac485cb4b3b79fb7ef979cb243ee16e1a1ffa767.tar.xz linux-ac485cb4b3b79fb7ef979cb243ee16e1a1ffa767.zip |
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 @@ CC = $(CROSS_COMPILE)gcc BUILD_OUTPUT := $(CURDIR) -PREFIX := /usr -DESTDIR := +PREFIX ?= /usr +DESTDIR ?= ifeq ("$(origin O)", "command line") BUILD_OUTPUT := $(O) |