diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2011-02-09 20:11:00 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-02-16 11:47:56 -0500 |
commit | 4187e262bc90369ba581ee28ec74ed416618889e (patch) | |
tree | 4223199a25f26d9ce279be201ec393bca304a868 | |
parent | b99976e2d277c963138e090ae17bf835f8a07680 (diff) |
perf tools: Update Makefile with some help
The perf makefile is nicely complete except for
a) an uninstall option
b) a 'make help' description
This patch implements b)
it also comments out other non-working makefile targets
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/Documentation/Makefile | 19 | ||||
-rw-r--r-- | tools/perf/Makefile | 30 |
2 files changed, 40 insertions, 9 deletions
diff --git a/tools/perf/Documentation/Makefile b/tools/perf/Documentation/Makefile index bd498d496952..4626a398836a 100644 --- a/tools/perf/Documentation/Makefile +++ b/tools/perf/Documentation/Makefile | |||
@@ -178,8 +178,8 @@ install-pdf: pdf | |||
178 | $(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir) | 178 | $(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir) |
179 | $(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir) | 179 | $(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir) |
180 | 180 | ||
181 | install-html: html | 181 | #install-html: html |
182 | '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir) | 182 | # '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir) |
183 | 183 | ||
184 | ../PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE | 184 | ../PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE |
185 | $(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) PERF-VERSION-FILE | 185 | $(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) PERF-VERSION-FILE |
@@ -288,15 +288,16 @@ $(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt | |||
288 | sed -e '1,/^$$/d' $< | $(ASCIIDOC) -b xhtml11 - >$@+ && \ | 288 | sed -e '1,/^$$/d' $< | $(ASCIIDOC) -b xhtml11 - >$@+ && \ |
289 | mv $@+ $@ | 289 | mv $@+ $@ |
290 | 290 | ||
291 | install-webdoc : html | 291 | # UNIMPLEMENTED |
292 | '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST) | 292 | #install-webdoc : html |
293 | # '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST) | ||
293 | 294 | ||
294 | quick-install: quick-install-man | 295 | # quick-install: quick-install-man |
295 | 296 | ||
296 | quick-install-man: | 297 | # quick-install-man: |
297 | '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(DOC_REF) $(DESTDIR)$(mandir) | 298 | # '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(DOC_REF) $(DESTDIR)$(mandir) |
298 | 299 | ||
299 | quick-install-html: | 300 | #quick-install-html: |
300 | '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REF) $(DESTDIR)$(htmldir) | 301 | # '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REF) $(DESTDIR)$(htmldir) |
301 | 302 | ||
302 | .PHONY: .FORCE-PERF-VERSION-FILE | 303 | .PHONY: .FORCE-PERF-VERSION-FILE |
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index ffd1047cd93b..7c75f1d45f59 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -1102,6 +1102,36 @@ $(sort $(dir $(DIRECTORY_DEPS))): | |||
1102 | $(LIB_FILE): $(LIB_OBJS) | 1102 | $(LIB_FILE): $(LIB_OBJS) |
1103 | $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS) | 1103 | $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS) |
1104 | 1104 | ||
1105 | help: | ||
1106 | @echo 'Perf make targets:' | ||
1107 | @echo ' doc - make *all* documentation (see below)' | ||
1108 | @echo ' man - make manpage documentation (access with man <foo>)' | ||
1109 | @echo ' html - make html documentation' | ||
1110 | @echo ' info - make GNU info documentation (access with info <foo>)' | ||
1111 | @echo ' pdf - make pdf documentation' | ||
1112 | @echo ' TAGS - use etags to make tag information for source browsing' | ||
1113 | @echo ' tags - use ctags to make tag information for source browsing' | ||
1114 | @echo ' cscope - use cscope to make interactive browsing database' | ||
1115 | @echo '' | ||
1116 | @echo 'Perf install targets:' | ||
1117 | @echo ' NOTE: documentation build requires asciidoc, xmlto packages to be installed' | ||
1118 | @echo ' HINT: use "make prefix=<path> <install target>" to install to a particular' | ||
1119 | @echo ' path like make prefix=/usr/local install install-doc' | ||
1120 | @echo ' install - install compiled binaries' | ||
1121 | @echo ' install-doc - install *all* documentation' | ||
1122 | @echo ' install-man - install manpage documentation' | ||
1123 | @echo ' install-html - install html documentation' | ||
1124 | @echo ' install-info - install GNU info documentation' | ||
1125 | @echo ' install-pdf - install pdf documentation' | ||
1126 | @echo '' | ||
1127 | @echo ' quick-install-doc - alias for quick-install-man' | ||
1128 | @echo ' quick-install-man - install the documentation quickly' | ||
1129 | @echo ' quick-install-html - install the html documentation quickly' | ||
1130 | @echo '' | ||
1131 | @echo 'Perf maintainer targets:' | ||
1132 | @echo ' distclean - alias to clean' | ||
1133 | @echo ' clean - clean all binary objects and build output' | ||
1134 | |||
1105 | doc: | 1135 | doc: |
1106 | $(MAKE) -C Documentation all | 1136 | $(MAKE) -C Documentation all |
1107 | 1137 | ||