* T??r??k Edwin<edwintorok@xxxxxxxxx> wrote:
It was confusing to install into $(HOME)/bin, especially since there wasBtw., we inherited that default prefix from the Git project.
no documentation mentioning where perf gets installed by default.
So install to /usr/local by default, as other programs do, and allow users to
override the install location by specifying the prefix explicitly.
Signed-off-by: T??r??k Edwin<edwintorok@xxxxxxxxx>
---
tools/perf/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 2e7fa3a..8e8c199 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -216,7 +216,7 @@ STRIP ?= strip
# runtime figures out where they are based on the path to the executable.
# This can help installing the suite in a relocatable way.
-prefix = $(HOME)
+prefix = /usr/local
bindir_relative = bin
bindir = $(prefix)/$(bindir_relative)
mandir = share/man
Is there a way to get it into ~/bin/ if the user does not have permission to
/usr/local ? (i.e. doesnt run it as root)
That's a really convenient aspect of doing a 'make install' as user. (Which i
tend to do in most cases)