diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/Documentation/Makefile | 4 | ||||
| -rw-r--r-- | tools/perf/Makefile | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/Documentation/Makefile b/tools/perf/Documentation/Makefile index bdd3b7ecad0a..bd498d496952 100644 --- a/tools/perf/Documentation/Makefile +++ b/tools/perf/Documentation/Makefile | |||
| @@ -24,7 +24,10 @@ DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT)) | |||
| 24 | DOC_MAN5=$(patsubst %.txt,%.5,$(MAN5_TXT)) | 24 | DOC_MAN5=$(patsubst %.txt,%.5,$(MAN5_TXT)) |
| 25 | DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT)) | 25 | DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT)) |
| 26 | 26 | ||
| 27 | # Make the path relative to DESTDIR, not prefix | ||
| 28 | ifndef DESTDIR | ||
| 27 | prefix?=$(HOME) | 29 | prefix?=$(HOME) |
| 30 | endif | ||
| 28 | bindir?=$(prefix)/bin | 31 | bindir?=$(prefix)/bin |
| 29 | htmldir?=$(prefix)/share/doc/perf-doc | 32 | htmldir?=$(prefix)/share/doc/perf-doc |
| 30 | pdfdir?=$(prefix)/share/doc/perf-doc | 33 | pdfdir?=$(prefix)/share/doc/perf-doc |
| @@ -32,7 +35,6 @@ mandir?=$(prefix)/share/man | |||
| 32 | man1dir=$(mandir)/man1 | 35 | man1dir=$(mandir)/man1 |
| 33 | man5dir=$(mandir)/man5 | 36 | man5dir=$(mandir)/man5 |
| 34 | man7dir=$(mandir)/man7 | 37 | man7dir=$(mandir)/man7 |
| 35 | # DESTDIR= | ||
| 36 | 38 | ||
| 37 | ASCIIDOC=asciidoc | 39 | ASCIIDOC=asciidoc |
| 38 | ASCIIDOC_EXTRA = --unsafe | 40 | ASCIIDOC_EXTRA = --unsafe |
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 5840499e2d22..8a8f52db7e38 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
| @@ -216,7 +216,10 @@ STRIP ?= strip | |||
| 216 | # runtime figures out where they are based on the path to the executable. | 216 | # runtime figures out where they are based on the path to the executable. |
| 217 | # This can help installing the suite in a relocatable way. | 217 | # This can help installing the suite in a relocatable way. |
| 218 | 218 | ||
| 219 | # Make the path relative to DESTDIR, not to prefix | ||
| 220 | ifndef DESTDIR | ||
| 219 | prefix = $(HOME) | 221 | prefix = $(HOME) |
| 222 | endif | ||
| 220 | bindir_relative = bin | 223 | bindir_relative = bin |
| 221 | bindir = $(prefix)/$(bindir_relative) | 224 | bindir = $(prefix)/$(bindir_relative) |
| 222 | mandir = share/man | 225 | mandir = share/man |
| @@ -233,7 +236,6 @@ sysconfdir = $(prefix)/etc | |||
| 233 | ETC_PERFCONFIG = etc/perfconfig | 236 | ETC_PERFCONFIG = etc/perfconfig |
| 234 | endif | 237 | endif |
| 235 | lib = lib | 238 | lib = lib |
| 236 | # DESTDIR= | ||
| 237 | 239 | ||
| 238 | export prefix bindir sharedir sysconfdir | 240 | export prefix bindir sharedir sysconfdir |
| 239 | 241 | ||
