perf: Make the install relative to DESTDIR if specified
authorJohn Kacur <jkacur@redhat.com>
Thu, 11 Mar 2010 12:57:00 +0000 (13:57 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Mar 2010 13:08:11 +0000 (14:08 +0100)
commit7ae5f21361fea11f58c398701da635f778635d13
treef6bcf809f93ef4133f4edb9e8f0fa770aacde9a7
parent83ff56f46a8532488ee364bb93a9cb2a59490d33
perf: Make the install relative to DESTDIR if specified

Without this change, the install path is relative to
prefix/DESTDIR where prefix is automatically set to $HOME.

This can produce unexpected results. For example:

  make -C tools/perf DESTDIR=/home/jkacur/tmp install-man

creates the directory: /home/jkacur/home/jkacur/tmp/share/...
instead of the expected: /home/jkacur/tmp/share/...

Signed-off-by: John Kacur <jkacur@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
Cc: Kyle McMartin <kyle@redhat.com>
Cc: <stable@kernel.org>
LKML-Reference: <1268312220-12880-1-git-send-email-jkacur@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/Documentation/Makefile
tools/perf/Makefile