diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2010-03-26 15:11:23 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2010-03-26 15:11:23 -0400 |
| commit | aa77b2d95d404e9e0e1e9687f69a5fd70db6bc11 (patch) | |
| tree | 6780671de9fd8ee4055407db5160e11f586f4567 /Documentation/Makefile | |
| parent | 46b673123d4dc4a03b4273ff1734772c6a618624 (diff) | |
Documentation: Added trace-cmd.dat.5.txt
Added a documentation man page on the format of the trace.dat file.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation/Makefile')
| -rw-r--r-- | Documentation/Makefile | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 72c9bad..f7f777f 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile | |||
| @@ -35,6 +35,14 @@ do_xsltproc_build = \ | |||
| 35 | xsltproc --nonet -o $@ ${MANPAGE_DOCBOOK_XSL} $< $(hide_xsltproc_output)) | 35 | xsltproc --nonet -o $@ ${MANPAGE_DOCBOOK_XSL} $< $(hide_xsltproc_output)) |
| 36 | 36 | ||
| 37 | # | 37 | # |
| 38 | # asciidoc requires a synopsis, but file format man pages (5) do | ||
| 39 | # not require them. This removes it from the file in the final step. | ||
| 40 | define remove_synopsis | ||
| 41 | (sed -e '/^\.SH "SYNOPSIS"/,/^\.sp/d' $1 > $1.tmp;\ | ||
| 42 | mv $1.tmp $1) | ||
| 43 | endef | ||
| 44 | |||
| 45 | # | ||
| 38 | # Most likely a docbook.xsl is already installed on the users system | 46 | # Most likely a docbook.xsl is already installed on the users system |
| 39 | # instead of creating a new wheel, lets reuse what's already there. | 47 | # instead of creating a new wheel, lets reuse what's already there. |
| 40 | # | 48 | # |
| @@ -49,10 +57,17 @@ $(obj)/%.1: $(obj)/%.1.xsl | |||
| 49 | @$(call manpage.xsl) | 57 | @$(call manpage.xsl) |
| 50 | $(Q)$(do_xsltproc_build) | 58 | $(Q)$(do_xsltproc_build) |
| 51 | 59 | ||
| 60 | $(obj)/%.5: $(obj)/%.5.xsl | ||
| 61 | @$(call manpage.xsl) | ||
| 62 | $(Q)$(do_xsltproc_build) | ||
| 63 | $(Q)$(call remove_synopsis, $@) | ||
| 64 | |||
| 52 | TEXT1 = $(wildcard *.1.txt) | 65 | TEXT1 = $(wildcard *.1.txt) |
| 53 | MAN1 = $(patsubst %.1.txt,$(obj)/%.1, ${TEXT1}) | 66 | MAN1 = $(patsubst %.1.txt,$(obj)/%.1, ${TEXT1}) |
| 67 | TEXT5 = $(wildcard *.5.txt) | ||
| 68 | MAN5 = $(patsubst %.5.txt,$(obj)/%.5, ${TEXT5}) | ||
| 54 | 69 | ||
| 55 | all: $(MAN1) | 70 | all: $(MAN1) $(MAN5) |
| 56 | 71 | ||
| 57 | define do_install | 72 | define do_install |
| 58 | $(print_install) \ | 73 | $(print_install) \ |
| @@ -62,16 +77,19 @@ define do_install | |||
| 62 | $(INSTALL) $1 $2; | 77 | $(INSTALL) $1 $2; |
| 63 | endef | 78 | endef |
| 64 | 79 | ||
| 65 | MAN1_INSTALL = $(subst .1,.install,$(MAN1)) | 80 | MAN1_INSTALL = $(subst .1,.1.install,$(MAN1)) |
| 81 | MAN5_INSTALL = $(subst .5,.5.install,$(MAN5)) | ||
| 66 | 82 | ||
| 67 | $(MAN1_INSTALL): %.install : %.1 force | 83 | $(MAN1_INSTALL): %.1.install : %.1 force |
| 68 | $(Q)$(call do_install, $<, '$(man_dir_SQ)/man1') | 84 | $(Q)$(call do_install, $<, '$(man_dir_SQ)/man1') |
| 85 | $(MAN5_INSTALL): %.5.install : %.5 force | ||
| 86 | $(Q)$(call do_install, $<, '$(man_dir_SQ)/man5') | ||
| 69 | 87 | ||
| 70 | install: $(MAN1_INSTALL) | 88 | install: $(MAN1_INSTALL) $(MAN5_INSTALL) |
| 71 | 89 | ||
| 72 | clean: | 90 | clean: |
| 73 | (cd $(obj); \ | 91 | (cd $(obj); \ |
| 74 | $(RM) *.xml *.xsl *.1) | 92 | $(RM) *.xml *.xsl *.1 *.5) |
| 75 | 93 | ||
| 76 | .PHONE: force | 94 | .PHONE: force |
| 77 | force: \ No newline at end of file | 95 | force: \ No newline at end of file |
