Skip to content

Commit 4187e26

Browse files
jbrandebacmel
authored andcommitted
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>
1 parent b99976e commit 4187e26

2 files changed

Lines changed: 40 additions & 9 deletions

File tree

‎tools/perf/Documentation/Makefile‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ install-pdf: pdf
178178
$(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir)
179179
$(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir)
180180

181-
install-html: html
182-
'$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir)
181+
#install-html: html
182+
# '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir)
183183

184184
../PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE
185185
$(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) PERF-VERSION-FILE
@@ -288,15 +288,16 @@ $(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
288288
sed -e '1,/^$$/d' $< | $(ASCIIDOC) -b xhtml11 - >$@+ && \
289289
mv $@+ $@
290290

291-
install-webdoc : html
292-
'$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST)
291+
# UNIMPLEMENTED
292+
#install-webdoc : html
293+
# '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST)
293294

294-
quick-install: quick-install-man
295+
# quick-install: quick-install-man
295296

296-
quick-install-man:
297-
'$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(DOC_REF) $(DESTDIR)$(mandir)
297+
# quick-install-man:
298+
# '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(DOC_REF) $(DESTDIR)$(mandir)
298299

299-
quick-install-html:
300-
'$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REF) $(DESTDIR)$(htmldir)
300+
#quick-install-html:
301+
# '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REF) $(DESTDIR)$(htmldir)
301302

302303
.PHONY: .FORCE-PERF-VERSION-FILE

‎tools/perf/Makefile‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,36 @@ $(sort $(dir $(DIRECTORY_DEPS))):
11021102
$(LIB_FILE): $(LIB_OBJS)
11031103
$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS)
11041104

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+
11051135
doc:
11061136
$(MAKE) -C Documentation all
11071137

0 commit comments

Comments
 (0)