Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 1 | OUTPUT := ./ |
| 2 | ifeq ("$(origin O)", "command line") |
| 3 | ifneq ($(O),) |
| 4 | OUTPUT := $(O)/ |
| 5 | endif |
| 6 | endif |
| 7 | |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 8 | MAN1_TXT= \ |
| 9 | $(filter-out $(addsuffix .txt, $(ARTICLES) $(SP_ARTICLES)), \ |
| 10 | $(wildcard perf-*.txt)) \ |
| 11 | perf.txt |
| 12 | MAN5_TXT= |
| 13 | MAN7_TXT= |
| 14 | |
| 15 | MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT) |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 16 | _MAN_XML=$(patsubst %.txt,%.xml,$(MAN_TXT)) |
| 17 | _MAN_HTML=$(patsubst %.txt,%.html,$(MAN_TXT)) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 18 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 19 | MAN_XML=$(addprefix $(OUTPUT),$(_MAN_XML)) |
| 20 | MAN_HTML=$(addprefix $(OUTPUT),$(_MAN_HTML)) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 21 | |
| 22 | ARTICLES = |
| 23 | # with their own formatting rules. |
| 24 | SP_ARTICLES = |
| 25 | API_DOCS = $(patsubst %.txt,%,$(filter-out technical/api-index-skel.txt technical/api-index.txt, $(wildcard technical/api-*.txt))) |
| 26 | SP_ARTICLES += $(API_DOCS) |
| 27 | SP_ARTICLES += technical/api-index |
| 28 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 29 | _DOC_HTML = $(_MAN_HTML) |
| 30 | _DOC_HTML+=$(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES)) |
| 31 | DOC_HTML=$(addprefix $(OUTPUT),$(_DOC_HTML)) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 32 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 33 | _DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT)) |
| 34 | _DOC_MAN5=$(patsubst %.txt,%.5,$(MAN5_TXT)) |
| 35 | _DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT)) |
| 36 | |
| 37 | DOC_MAN1=$(addprefix $(OUTPUT),$(_DOC_MAN1)) |
| 38 | DOC_MAN5=$(addprefix $(OUTPUT),$(_DOC_MAN5)) |
| 39 | DOC_MAN7=$(addprefix $(OUTPUT),$(_DOC_MAN7)) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 40 | |
John Kacur | 7ae5f213 | 2010-03-11 13:57:00 +0100 | [diff] [blame] | 41 | # Make the path relative to DESTDIR, not prefix |
| 42 | ifndef DESTDIR |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 43 | prefix?=$(HOME) |
John Kacur | 7ae5f213 | 2010-03-11 13:57:00 +0100 | [diff] [blame] | 44 | endif |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 45 | bindir?=$(prefix)/bin |
| 46 | htmldir?=$(prefix)/share/doc/perf-doc |
| 47 | pdfdir?=$(prefix)/share/doc/perf-doc |
| 48 | mandir?=$(prefix)/share/man |
| 49 | man1dir=$(mandir)/man1 |
| 50 | man5dir=$(mandir)/man5 |
| 51 | man7dir=$(mandir)/man7 |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 52 | |
| 53 | ASCIIDOC=asciidoc |
Kyle McMartin | b395cd8 | 2009-08-18 12:41:25 -0400 | [diff] [blame] | 54 | ASCIIDOC_EXTRA = --unsafe |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 55 | MANPAGE_XSL = manpage-normal.xsl |
| 56 | XMLTO_EXTRA = |
| 57 | INSTALL?=install |
| 58 | RM ?= rm -f |
| 59 | DOC_REF = origin/man |
| 60 | HTML_REF = origin/html |
| 61 | |
| 62 | infodir?=$(prefix)/share/info |
| 63 | MAKEINFO=makeinfo |
| 64 | INSTALL_INFO=install-info |
| 65 | DOCBOOK2X_TEXI=docbook2x-texi |
| 66 | DBLATEX=dblatex |
| 67 | ifndef PERL_PATH |
| 68 | PERL_PATH = /usr/bin/perl |
| 69 | endif |
| 70 | |
| 71 | -include ../config.mak.autogen |
| 72 | -include ../config.mak |
| 73 | |
| 74 | # |
| 75 | # For asciidoc ... |
| 76 | # -7.1.2, no extra settings are needed. |
| 77 | # 8.0-, set ASCIIDOC8. |
| 78 | # |
| 79 | |
| 80 | # |
| 81 | # For docbook-xsl ... |
| 82 | # -1.68.1, set ASCIIDOC_NO_ROFF? (based on changelog from 1.73.0) |
| 83 | # 1.69.0, no extra settings are needed? |
| 84 | # 1.69.1-1.71.0, set DOCBOOK_SUPPRESS_SP? |
| 85 | # 1.71.1, no extra settings are needed? |
| 86 | # 1.72.0, set DOCBOOK_XSL_172. |
| 87 | # 1.73.0-, set ASCIIDOC_NO_ROFF |
| 88 | # |
| 89 | |
| 90 | # |
| 91 | # If you had been using DOCBOOK_XSL_172 in an attempt to get rid |
| 92 | # of 'the ".ft C" problem' in your generated manpages, and you |
| 93 | # instead ended up with weird characters around callouts, try |
| 94 | # using ASCIIDOC_NO_ROFF instead (it works fine with ASCIIDOC8). |
| 95 | # |
| 96 | |
| 97 | ifdef ASCIIDOC8 |
| 98 | ASCIIDOC_EXTRA += -a asciidoc7compatible |
| 99 | endif |
| 100 | ifdef DOCBOOK_XSL_172 |
| 101 | ASCIIDOC_EXTRA += -a perf-asciidoc-no-roff |
| 102 | MANPAGE_XSL = manpage-1.72.xsl |
| 103 | else |
| 104 | ifdef ASCIIDOC_NO_ROFF |
| 105 | # docbook-xsl after 1.72 needs the regular XSL, but will not |
| 106 | # pass-thru raw roff codes from asciidoc.conf, so turn them off. |
| 107 | ASCIIDOC_EXTRA += -a perf-asciidoc-no-roff |
| 108 | endif |
| 109 | endif |
| 110 | ifdef MAN_BOLD_LITERAL |
| 111 | XMLTO_EXTRA += -m manpage-bold-literal.xsl |
| 112 | endif |
| 113 | ifdef DOCBOOK_SUPPRESS_SP |
| 114 | XMLTO_EXTRA += -m manpage-suppress-sp.xsl |
| 115 | endif |
| 116 | |
| 117 | SHELL_PATH ?= $(SHELL) |
| 118 | # Shell quote; |
| 119 | SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH)) |
| 120 | |
| 121 | # |
| 122 | # Please note that there is a minor bug in asciidoc. |
| 123 | # The version after 6.0.3 _will_ include the patch found here: |
| 124 | # http://marc.theaimsgroup.com/?l=perf&m=111558757202243&w=2 |
| 125 | # |
| 126 | # Until that version is released you may have to apply the patch |
| 127 | # yourself - yes, all 6 characters of it! |
| 128 | # |
| 129 | |
| 130 | QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir |
| 131 | QUIET_SUBDIR1 = |
| 132 | |
| 133 | ifneq ($(findstring $(MAKEFLAGS),w),w) |
| 134 | PRINT_DIR = --no-print-directory |
| 135 | else # "make -w" |
| 136 | NO_SUBDIR = : |
| 137 | endif |
| 138 | |
| 139 | ifneq ($(findstring $(MAKEFLAGS),s),s) |
| 140 | ifndef V |
| 141 | QUIET_ASCIIDOC = @echo ' ' ASCIIDOC $@; |
| 142 | QUIET_XMLTO = @echo ' ' XMLTO $@; |
| 143 | QUIET_DB2TEXI = @echo ' ' DB2TEXI $@; |
| 144 | QUIET_MAKEINFO = @echo ' ' MAKEINFO $@; |
| 145 | QUIET_DBLATEX = @echo ' ' DBLATEX $@; |
| 146 | QUIET_XSLTPROC = @echo ' ' XSLTPROC $@; |
| 147 | QUIET_GEN = @echo ' ' GEN $@; |
| 148 | QUIET_STDERR = 2> /dev/null |
| 149 | QUIET_SUBDIR0 = +@subdir= |
| 150 | QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \ |
| 151 | $(MAKE) $(PRINT_DIR) -C $$subdir |
| 152 | export V |
| 153 | endif |
| 154 | endif |
| 155 | |
| 156 | all: html man |
| 157 | |
| 158 | html: $(DOC_HTML) |
| 159 | |
| 160 | $(DOC_HTML) $(DOC_MAN1) $(DOC_MAN5) $(DOC_MAN7): asciidoc.conf |
| 161 | |
| 162 | man: man1 man5 man7 |
| 163 | man1: $(DOC_MAN1) |
| 164 | man5: $(DOC_MAN5) |
| 165 | man7: $(DOC_MAN7) |
| 166 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 167 | info: $(OUTPUT)perf.info $(OUTPUT)perfman.info |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 168 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 169 | pdf: $(OUTPUT)user-manual.pdf |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 170 | |
| 171 | install: install-man |
| 172 | |
| 173 | install-man: man |
| 174 | $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir) |
| 175 | # $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir) |
| 176 | # $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir) |
| 177 | $(INSTALL) -m 644 $(DOC_MAN1) $(DESTDIR)$(man1dir) |
| 178 | # $(INSTALL) -m 644 $(DOC_MAN5) $(DESTDIR)$(man5dir) |
| 179 | # $(INSTALL) -m 644 $(DOC_MAN7) $(DESTDIR)$(man7dir) |
| 180 | |
| 181 | install-info: info |
| 182 | $(INSTALL) -d -m 755 $(DESTDIR)$(infodir) |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 183 | $(INSTALL) -m 644 $(OUTPUT)perf.info $(OUTPUT)perfman.info $(DESTDIR)$(infodir) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 184 | if test -r $(DESTDIR)$(infodir)/dir; then \ |
| 185 | $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) perf.info ;\ |
| 186 | $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) perfman.info ;\ |
| 187 | else \ |
| 188 | echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \ |
| 189 | fi |
| 190 | |
| 191 | install-pdf: pdf |
| 192 | $(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir) |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 193 | $(INSTALL) -m 644 $(OUTPUT)user-manual.pdf $(DESTDIR)$(pdfdir) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 194 | |
Jesse Brandeburg | 4187e26 | 2011-02-09 17:11:00 -0800 | [diff] [blame] | 195 | #install-html: html |
| 196 | # '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 197 | |
Robert Richter | e6b9783 | 2012-08-07 19:43:11 +0200 | [diff] [blame^] | 198 | $(OUTPUT)PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE |
| 199 | $(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) $(OUTPUT)PERF-VERSION-FILE |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 200 | |
Robert Richter | e6b9783 | 2012-08-07 19:43:11 +0200 | [diff] [blame^] | 201 | -include $(OUTPUT)PERF-VERSION-FILE |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 202 | |
| 203 | # |
| 204 | # Determine "include::" file references in asciidoc files. |
| 205 | # |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 206 | $(OUTPUT)doc.dep : $(wildcard *.txt) build-docdep.perl |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 207 | $(QUIET_GEN)$(RM) $@+ $@ && \ |
| 208 | $(PERL_PATH) ./build-docdep.perl >$@+ $(QUIET_STDERR) && \ |
| 209 | mv $@+ $@ |
| 210 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 211 | -include $(OUPTUT)doc.dep |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 212 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 213 | _cmds_txt = cmds-ancillaryinterrogators.txt \ |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 214 | cmds-ancillarymanipulators.txt \ |
| 215 | cmds-mainporcelain.txt \ |
| 216 | cmds-plumbinginterrogators.txt \ |
| 217 | cmds-plumbingmanipulators.txt \ |
| 218 | cmds-synchingrepositories.txt \ |
| 219 | cmds-synchelpers.txt \ |
| 220 | cmds-purehelpers.txt \ |
| 221 | cmds-foreignscminterface.txt |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 222 | cmds_txt=$(addprefix $(OUTPUT),$(_cmds_txt)) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 223 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 224 | $(cmds_txt): $(OUTPUT)cmd-list.made |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 225 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 226 | $(OUTPUT)cmd-list.made: cmd-list.perl ../command-list.txt $(MAN1_TXT) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 227 | $(QUIET_GEN)$(RM) $@ && \ |
| 228 | $(PERL_PATH) ./cmd-list.perl ../command-list.txt $(QUIET_STDERR) && \ |
| 229 | date >$@ |
| 230 | |
| 231 | clean: |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 232 | $(RM) $(MAN_XML) $(addsuffix +,$(MAN_XML)) |
| 233 | $(RM) $(MAN_HTML) $(addsuffix +,$(MAN_HTML)) |
| 234 | $(RM) $(DOC_HTML) $(DOC_MAN1) $(DOC_MAN5) $(DOC_MAN7) |
| 235 | $(RM) $(OUTPUT)*.texi $(OUTPUT)*.texi+ $(OUTPUT)*.texi++ |
| 236 | $(RM) $(OUTPUT)perf.info $(OUTPUT)perfman.info |
| 237 | $(RM) $(OUTPUT)howto-index.txt $(OUTPUT)howto/*.html $(OUTPUT)doc.dep |
| 238 | $(RM) $(OUTPUT)technical/api-*.html $(OUTPUT)technical/api-index.txt |
| 239 | $(RM) $(cmds_txt) $(OUTPUT)*.made |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 240 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 241 | $(MAN_HTML): $(OUTPUT)%.html : %.txt |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 242 | $(QUIET_ASCIIDOC)$(RM) $@+ $@ && \ |
| 243 | $(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf \ |
| 244 | $(ASCIIDOC_EXTRA) -aperf_version=$(PERF_VERSION) -o $@+ $< && \ |
| 245 | mv $@+ $@ |
| 246 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 247 | $(OUTPUT)%.1 $(OUTPUT)%.5 $(OUTPUT)%.7 : $(OUTPUT)%.xml |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 248 | $(QUIET_XMLTO)$(RM) $@ && \ |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 249 | xmlto -o $(OUTPUT) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $< |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 250 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 251 | $(OUTPUT)%.xml : %.txt |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 252 | $(QUIET_ASCIIDOC)$(RM) $@+ $@ && \ |
| 253 | $(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \ |
| 254 | $(ASCIIDOC_EXTRA) -aperf_version=$(PERF_VERSION) -o $@+ $< && \ |
| 255 | mv $@+ $@ |
| 256 | |
| 257 | XSLT = docbook.xsl |
| 258 | XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css |
| 259 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 260 | $(OUTPUT)user-manual.html: $(OUTPUT)user-manual.xml |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 261 | $(QUIET_XSLTPROC)xsltproc $(XSLTOPTS) -o $@ $(XSLT) $< |
| 262 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 263 | $(OUTPUT)perf.info: $(OUTPUT)user-manual.texi |
| 264 | $(QUIET_MAKEINFO)$(MAKEINFO) --no-split -o $@ $(OUTPUT)user-manual.texi |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 265 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 266 | $(OUTPUT)user-manual.texi: $(OUTPUT)user-manual.xml |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 267 | $(QUIET_DB2TEXI)$(RM) $@+ $@ && \ |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 268 | $(DOCBOOK2X_TEXI) $(OUTPUT)user-manual.xml --encoding=UTF-8 --to-stdout >$@++ && \ |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 269 | $(PERL_PATH) fix-texi.perl <$@++ >$@+ && \ |
| 270 | rm $@++ && \ |
| 271 | mv $@+ $@ |
| 272 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 273 | $(OUTPUT)user-manual.pdf: $(OUTPUT)user-manual.xml |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 274 | $(QUIET_DBLATEX)$(RM) $@+ $@ && \ |
| 275 | $(DBLATEX) -o $@+ -p /etc/asciidoc/dblatex/asciidoc-dblatex.xsl -s /etc/asciidoc/dblatex/asciidoc-dblatex.sty $< && \ |
| 276 | mv $@+ $@ |
| 277 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 278 | $(OUTPUT)perfman.texi: $(MAN_XML) cat-texi.perl |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 279 | $(QUIET_DB2TEXI)$(RM) $@+ $@ && \ |
| 280 | ($(foreach xml,$(MAN_XML),$(DOCBOOK2X_TEXI) --encoding=UTF-8 \ |
| 281 | --to-stdout $(xml) &&) true) > $@++ && \ |
| 282 | $(PERL_PATH) cat-texi.perl $@ <$@++ >$@+ && \ |
| 283 | rm $@++ && \ |
| 284 | mv $@+ $@ |
| 285 | |
Franck Bui-Huu | 762b293 | 2012-02-06 16:17:23 +0100 | [diff] [blame] | 286 | $(OUTPUT)perfman.info: $(OUTPUT)perfman.texi |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 287 | $(QUIET_MAKEINFO)$(MAKEINFO) --no-split --no-validate $*.texi |
| 288 | |
| 289 | $(patsubst %.txt,%.texi,$(MAN_TXT)): %.texi : %.xml |
| 290 | $(QUIET_DB2TEXI)$(RM) $@+ $@ && \ |
| 291 | $(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@+ && \ |
| 292 | mv $@+ $@ |
| 293 | |
| 294 | howto-index.txt: howto-index.sh $(wildcard howto/*.txt) |
| 295 | $(QUIET_GEN)$(RM) $@+ $@ && \ |
| 296 | '$(SHELL_PATH_SQ)' ./howto-index.sh $(wildcard howto/*.txt) >$@+ && \ |
| 297 | mv $@+ $@ |
| 298 | |
| 299 | $(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt |
| 300 | $(QUIET_ASCIIDOC)$(ASCIIDOC) -b xhtml11 $*.txt |
| 301 | |
| 302 | WEBDOC_DEST = /pub/software/tools/perf/docs |
| 303 | |
| 304 | $(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt |
| 305 | $(QUIET_ASCIIDOC)$(RM) $@+ $@ && \ |
| 306 | sed -e '1,/^$$/d' $< | $(ASCIIDOC) -b xhtml11 - >$@+ && \ |
| 307 | mv $@+ $@ |
| 308 | |
Jesse Brandeburg | 4187e26 | 2011-02-09 17:11:00 -0800 | [diff] [blame] | 309 | # UNIMPLEMENTED |
| 310 | #install-webdoc : html |
| 311 | # '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 312 | |
Jesse Brandeburg | 4187e26 | 2011-02-09 17:11:00 -0800 | [diff] [blame] | 313 | # quick-install: quick-install-man |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 314 | |
Jesse Brandeburg | 4187e26 | 2011-02-09 17:11:00 -0800 | [diff] [blame] | 315 | # quick-install-man: |
| 316 | # '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(DOC_REF) $(DESTDIR)$(mandir) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 317 | |
Jesse Brandeburg | 4187e26 | 2011-02-09 17:11:00 -0800 | [diff] [blame] | 318 | #quick-install-html: |
| 319 | # '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REF) $(DESTDIR)$(htmldir) |
Ingo Molnar | c1c2365 | 2009-05-30 12:38:51 +0200 | [diff] [blame] | 320 | |
| 321 | .PHONY: .FORCE-PERF-VERSION-FILE |