diff options
author | Jianyu Zhan <nasa4836@gmail.com> | 2014-06-02 12:44:34 -0400 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-06-03 15:35:12 -0400 |
commit | fc9cabeabf42d76854059e7bce81a02645e7e5ca (patch) | |
tree | ba546a451c07ce05f143a56c2baae07d2cfdf6de /tools | |
parent | a515114fa3cff8f1da10cd68914d55c10879c3e0 (diff) |
perf tools: Fix 'make help' message error
Currently 'make help' message has such hint:
use "make prefix=<path> <install target>" to install to a particular
path like make prefix=/usr/local install install-doc
But this is misleading, when I specify "prefix=/usr/local", it has got no
respect at all.
This is because that, "DESTDIR" is considered first. In this case, "DESTDIR"
has an empty value, so "prefix" is honored. However, "prefix" is unconditionally
assigned to $HOME, regardless of what it is set to from command line. So our
"prefix" setting got no respect and the actual destination falls back to $HOME.
This patch fixes this issue and corrects the help message.
Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1401727474-19370-1-git-send-email-nasa4836@gmail.com
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/Makefile.perf | 4 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 6286e13adc2e..ae20edfcc3f7 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf | |||
@@ -789,8 +789,8 @@ help: | |||
789 | @echo '' | 789 | @echo '' |
790 | @echo 'Perf install targets:' | 790 | @echo 'Perf install targets:' |
791 | @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed' | 791 | @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed' |
792 | @echo ' HINT: use "make prefix=<path> <install target>" to install to a particular' | 792 | @echo ' HINT: use "prefix" or "DESTDIR" to install to a particular' |
793 | @echo ' path like make prefix=/usr/local install install-doc' | 793 | @echo ' path like "make prefix=/usr/local install install-doc"' |
794 | @echo ' install - install compiled binaries' | 794 | @echo ' install - install compiled binaries' |
795 | @echo ' install-doc - install *all* documentation' | 795 | @echo ' install-doc - install *all* documentation' |
796 | @echo ' install-man - install manpage documentation' | 796 | @echo ' install-man - install manpage documentation' |
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 319426f632fc..4f100b54ba8b 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -600,7 +600,7 @@ endif | |||
600 | 600 | ||
601 | # Make the path relative to DESTDIR, not to prefix | 601 | # Make the path relative to DESTDIR, not to prefix |
602 | ifndef DESTDIR | 602 | ifndef DESTDIR |
603 | prefix = $(HOME) | 603 | prefix ?= $(HOME) |
604 | endif | 604 | endif |
605 | bindir_relative = bin | 605 | bindir_relative = bin |
606 | bindir = $(prefix)/$(bindir_relative) | 606 | bindir = $(prefix)/$(bindir_relative) |