From: Andy Shevchenko Date: Fri, 17 Jun 2016 12:59:33 +0000 (+0300) Subject: tools/turbostat: allow user to alter DESTDIR and PREFIX X-Git-Tag: v4.8-rc1~158^2~7^3~1 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=ac485cb4b3b79fb7ef979cb243ee16e1a1ffa767;p=cascardo%2Flinux.git 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 Signed-off-by: Rafael J. Wysocki --- 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)