aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2012-09-28 13:47:07 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-24 17:30:48 -0400
commitaf3df2cf17f5df079189c3cc88870d28e219496b (patch)
treefc0e6ea775be9bc10e16d2aab31f018f4b027c0c /tools/perf/Makefile
parent814d7a4d2c33657489f7b45bc0b2dcaa0d88edc0 (diff)
perf tools: Try to build Documentation when installing
There's a portion in the "perf list" output refering to the exact specification of raw hardware events. Since this description is in the perf-list manpage, try to build and install the man pages, warning the user when that is not possible due to missing packages (xmlto and asciidoc). Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/n/tip-ij71ysszkdvz3fy3wr331bke@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 78a81eda127..b14eeb86d8d 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -1041,7 +1041,7 @@ perfexec_instdir = $(prefix)/$(perfexecdir)
1041endif 1041endif
1042perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir)) 1042perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir))
1043 1043
1044install: all 1044install: all try-install-man
1045 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)' 1045 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'
1046 $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)' 1046 $(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)'
1047 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace' 1047 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace'
@@ -1067,6 +1067,9 @@ install-doc:
1067install-man: 1067install-man:
1068 $(MAKE) -C Documentation install-man 1068 $(MAKE) -C Documentation install-man
1069 1069
1070try-install-man:
1071 $(MAKE) -C Documentation try-install-man
1072
1070install-html: 1073install-html:
1071 $(MAKE) -C Documentation install-html 1074 $(MAKE) -C Documentation install-html
1072 1075