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: v5.15~13220^2~7^3~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac485cb4b3b79fb7ef979cb243ee16e1a1ffa767;p=platform%2Fkernel%2Flinux-starfive.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 e367b1a8..8561e7d 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)