Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1425048 > unrolled thread

[PATCH v1 1/1] tools/turbostat: allow user to alter DESTDIR and PREFIX

Started byAndy Shevchenko <andriy.shevchenko@linux.intel.com>
First post2016-06-17 15:00 +0200
Last post2016-06-17 15:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v1 1/1] tools/turbostat: allow user to alter DESTDIR and PREFIX Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-06-17 15:00 +0200

#1425048 — [PATCH v1 1/1] tools/turbostat: allow user to alter DESTDIR and PREFIX

FromAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Date2016-06-17 15:00 +0200
Subject[PATCH v1 1/1] tools/turbostat: allow user to alter DESTDIR and PREFIX
Message-ID<rL1xo-6DO-15@gated-at.bofh.it>
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>
---
 tools/power/x86/turbostat/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile
index e367b1a..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)
-- 
2.8.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web