Skip to content

Commit fc9cabe

Browse files
JianyuZhanolsajiri
authored andcommitted
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>
1 parent a515114 commit fc9cabe

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎tools/perf/Makefile.perf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,8 @@ help:
789789
@echo ''
790790
@echo 'Perf install targets:'
791791
@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'
793-
@echo ' path like make prefix=/usr/local install install-doc'
792+
@echo ' HINT: use "prefix" or "DESTDIR" to install to a particular'
793+
@echo ' path like "make prefix=/usr/local install install-doc"'
794794
@echo ' install - install compiled binaries'
795795
@echo ' install-doc - install *all* documentation'
796796
@echo ' install-man - install manpage documentation'

‎tools/perf/config/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ endif
600600

601601
# Make the path relative to DESTDIR, not to prefix
602602
ifndef DESTDIR
603-
prefix = $(HOME)
603+
prefix ?= $(HOME)
604604
endif
605605
bindir_relative = bin
606606
bindir = $(prefix)/$(bindir_relative)

0 commit comments

Comments
 (0)