aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/Makefile
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-05-30 06:38:51 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-30 07:52:44 -0400
commitc1c2365acf8c044f749c0fe1ea236497e8d1718e (patch)
tree79f4f096429920ba67842f8adf0e57a35f5c14a0 /Documentation/perf_counter/Makefile
parent7fbd55449aafb86d3237b5d1a26fb4dab2aa2c76 (diff)
perf_counter tools: Generate per command manpages (and pdf/html, etc.)
Import Git's nice .txt => {man/html/pdf} generation machinery. Fix various errors in the Documentation/perf*.txt description as well. Also fix a bug in builtin-help: we'd map 'perf help top' to 'perftop' if only the 'perf' binary is in the default PATH - confusing the manpage logic. I dont fully understand why Git did it this way - but i suppose it's a migration artifact from their migration from standalone git-xyz commands to 'git xyz' commands. The perf tools were always using the modern form so it's not an issue there. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: John Kacur <jkacur@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/Makefile')
-rw-r--r--Documentation/perf_counter/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/Documentation/perf_counter/Makefile b/Documentation/perf_counter/Makefile
index 8f725840477f..416ab11e9786 100644
--- a/Documentation/perf_counter/Makefile
+++ b/Documentation/perf_counter/Makefile
@@ -693,6 +693,21 @@ builtin-revert.o wt-status.o: wt-status.h
693$(LIB_FILE): $(LIB_OBJS) 693$(LIB_FILE): $(LIB_OBJS)
694 $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS) 694 $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS)
695 695
696doc:
697 $(MAKE) -C Documentation all
698
699man:
700 $(MAKE) -C Documentation man
701
702html:
703 $(MAKE) -C Documentation html
704
705info:
706 $(MAKE) -C Documentation info
707
708pdf:
709 $(MAKE) -C Documentation pdf
710
696TAGS: 711TAGS:
697 $(RM) TAGS 712 $(RM) TAGS
698 $(FIND) . -name '*.[hcS]' -print | xargs etags -a 713 $(FIND) . -name '*.[hcS]' -print | xargs etags -a
@@ -781,6 +796,31 @@ ifneq (,$X)
781 $(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) $(BUILT_INS) perf$X)), $(RM) '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/$p';) 796 $(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) $(BUILT_INS) perf$X)), $(RM) '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/$p';)
782endif 797endif
783 798
799install-doc:
800 $(MAKE) -C Documentation install
801
802install-man:
803 $(MAKE) -C Documentation install-man
804
805install-html:
806 $(MAKE) -C Documentation install-html
807
808install-info:
809 $(MAKE) -C Documentation install-info
810
811install-pdf:
812 $(MAKE) -C Documentation install-pdf
813
814quick-install-doc:
815 $(MAKE) -C Documentation quick-install
816
817quick-install-man:
818 $(MAKE) -C Documentation quick-install-man
819
820quick-install-html:
821 $(MAKE) -C Documentation quick-install-html
822
823
784### Maintainer's dist rules 824### Maintainer's dist rules
785 825
786perf.spec: perf.spec.in 826perf.spec: perf.spec.in
@@ -801,6 +841,26 @@ dist: perf.spec perf-archive$(X) configure
801 @$(RM) -r $(PERF_TARNAME) 841 @$(RM) -r $(PERF_TARNAME)
802 gzip -f -9 $(PERF_TARNAME).tar 842 gzip -f -9 $(PERF_TARNAME).tar
803 843
844htmldocs = perf-htmldocs-$(PERF_VERSION)
845manpages = perf-manpages-$(PERF_VERSION)
846dist-doc:
847 $(RM) -r .doc-tmp-dir
848 mkdir .doc-tmp-dir
849 $(MAKE) -C Documentation WEBDOC_DEST=../.doc-tmp-dir install-webdoc
850 cd .doc-tmp-dir && $(TAR) cf ../$(htmldocs).tar .
851 gzip -n -9 -f $(htmldocs).tar
852 :
853 $(RM) -r .doc-tmp-dir
854 mkdir -p .doc-tmp-dir/man1 .doc-tmp-dir/man5 .doc-tmp-dir/man7
855 $(MAKE) -C Documentation DESTDIR=./ \
856 man1dir=../.doc-tmp-dir/man1 \
857 man5dir=../.doc-tmp-dir/man5 \
858 man7dir=../.doc-tmp-dir/man7 \
859 install
860 cd .doc-tmp-dir && $(TAR) cf ../$(manpages).tar .
861 gzip -n -9 -f $(manpages).tar
862 $(RM) -r .doc-tmp-dir
863
804rpm: dist 864rpm: dist
805 $(RPMBUILD) -ta $(PERF_TARNAME).tar.gz 865 $(RPMBUILD) -ta $(PERF_TARNAME).tar.gz
806 866
@@ -819,6 +879,7 @@ clean:
819 $(RM) -r $(PERF_TARNAME) .doc-tmp-dir 879 $(RM) -r $(PERF_TARNAME) .doc-tmp-dir
820 $(RM) $(PERF_TARNAME).tar.gz perf-core_$(PERF_VERSION)-*.tar.gz 880 $(RM) $(PERF_TARNAME).tar.gz perf-core_$(PERF_VERSION)-*.tar.gz
821 $(RM) $(htmldocs).tar.gz $(manpages).tar.gz 881 $(RM) $(htmldocs).tar.gz $(manpages).tar.gz
882 $(MAKE) -C Documentation/ clean
822 $(RM) PERF-VERSION-FILE PERF-CFLAGS PERF-BUILD-OPTIONS 883 $(RM) PERF-VERSION-FILE PERF-CFLAGS PERF-BUILD-OPTIONS
823 884
824.PHONY: all install clean strip 885.PHONY: all install clean strip