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.1.12-92~24^2~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=36b9b867fe2501c380e11d08b2c35541cf3d1779;p=users%2Fjedix%2Flinux-maple.git tools/turbostat: allow user to alter DESTDIR and PREFIX Orabug: 24811361 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 (cherry picked from commit ac485cb4b3b79fb7ef979cb243ee16e1a1ffa767) Signed-off-by: Brian Maly Signed-off-by: Dhaval Giani --- diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile index 4039854560d0d..f0cada68ef048 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)