t: convert fgrep usage to "grep -F"
[alt-git.git] / Documentation / Makefile
blob12c533c1a3867391338f06e18b657f2a378fccb5
1 # Import tree-wide shared Makefile behavior and libraries
2 include ../shared.mak
4 # Guard against environment variables
5 MAN1_TXT =
6 MAN5_TXT =
7 MAN7_TXT =
8 HOWTO_TXT =
9 DOC_DEP_TXT =
10 TECH_DOCS =
11 ARTICLES =
12 SP_ARTICLES =
13 OBSOLETE_HTML =
15 -include GIT-EXCLUDED-PROGRAMS
17 MAN1_TXT += $(filter-out \
18 $(patsubst %,%.txt,$(EXCLUDED_PROGRAMS)) \
19 $(addsuffix .txt, $(ARTICLES) $(SP_ARTICLES)), \
20 $(wildcard git-*.txt))
21 MAN1_TXT += git.txt
22 MAN1_TXT += gitk.txt
23 MAN1_TXT += gitweb.txt
24 MAN1_TXT += scalar.txt
26 # man5 / man7 guides (note: new guides should also be added to command-list.txt)
27 MAN5_TXT += gitattributes.txt
28 MAN5_TXT += gitformat-bundle.txt
29 MAN5_TXT += gitformat-chunk.txt
30 MAN5_TXT += gitformat-commit-graph.txt
31 MAN5_TXT += gitformat-index.txt
32 MAN5_TXT += gitformat-pack.txt
33 MAN5_TXT += gitformat-signature.txt
34 MAN5_TXT += githooks.txt
35 MAN5_TXT += gitignore.txt
36 MAN5_TXT += gitmailmap.txt
37 MAN5_TXT += gitmodules.txt
38 MAN5_TXT += gitprotocol-capabilities.txt
39 MAN5_TXT += gitprotocol-common.txt
40 MAN5_TXT += gitprotocol-http.txt
41 MAN5_TXT += gitprotocol-pack.txt
42 MAN5_TXT += gitprotocol-v2.txt
43 MAN5_TXT += gitrepository-layout.txt
44 MAN5_TXT += gitweb.conf.txt
46 MAN7_TXT += gitcli.txt
47 MAN7_TXT += gitcore-tutorial.txt
48 MAN7_TXT += gitcredentials.txt
49 MAN7_TXT += gitcvs-migration.txt
50 MAN7_TXT += gitdiffcore.txt
51 MAN7_TXT += giteveryday.txt
52 MAN7_TXT += gitfaq.txt
53 MAN7_TXT += gitglossary.txt
54 MAN7_TXT += gitnamespaces.txt
55 MAN7_TXT += gitremote-helpers.txt
56 MAN7_TXT += gitrevisions.txt
57 MAN7_TXT += gitsubmodules.txt
58 MAN7_TXT += gittutorial-2.txt
59 MAN7_TXT += gittutorial.txt
60 MAN7_TXT += gitworkflows.txt
62 HOWTO_TXT += $(wildcard howto/*.txt)
64 DOC_DEP_TXT += $(wildcard *.txt)
65 DOC_DEP_TXT += $(wildcard config/*.txt)
66 DOC_DEP_TXT += $(wildcard includes/*.txt)
68 ifdef MAN_FILTER
69 MAN_TXT = $(filter $(MAN_FILTER),$(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT))
70 else
71 MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT)
72 MAN_FILTER = $(MAN_TXT)
73 endif
75 MAN_XML = $(patsubst %.txt,%.xml,$(MAN_TXT))
76 MAN_HTML = $(patsubst %.txt,%.html,$(MAN_TXT))
77 GIT_MAN_REF = master
79 OBSOLETE_HTML += everyday.html
80 OBSOLETE_HTML += git-remote-helpers.html
82 ARTICLES += howto-index
83 ARTICLES += git-tools
84 ARTICLES += git-bisect-lk2009
85 # with their own formatting rules.
86 SP_ARTICLES += user-manual
87 SP_ARTICLES += howto/new-command
88 SP_ARTICLES += howto/revert-branch-rebase
89 SP_ARTICLES += howto/using-merge-subtree
90 SP_ARTICLES += howto/using-signed-tag-in-pull-request
91 SP_ARTICLES += howto/use-git-daemon
92 SP_ARTICLES += howto/update-hook-example
93 SP_ARTICLES += howto/setup-git-server-over-http
94 SP_ARTICLES += howto/separating-topic-branches
95 SP_ARTICLES += howto/revert-a-faulty-merge
96 SP_ARTICLES += howto/recover-corrupted-blob-object
97 SP_ARTICLES += howto/recover-corrupted-object-harder
98 SP_ARTICLES += howto/rebuild-from-update-hook
99 SP_ARTICLES += howto/rebase-from-internal-branch
100 SP_ARTICLES += howto/keep-canonical-history-correct
101 SP_ARTICLES += howto/maintain-git
102 SP_ARTICLES += howto/coordinate-embargoed-releases
103 API_DOCS = $(patsubst %.txt,%,$(filter-out technical/api-index-skel.txt technical/api-index.txt, $(wildcard technical/api-*.txt)))
104 SP_ARTICLES += $(API_DOCS)
106 TECH_DOCS += MyFirstContribution
107 TECH_DOCS += MyFirstObjectWalk
108 TECH_DOCS += SubmittingPatches
109 TECH_DOCS += ToolsForGit
110 TECH_DOCS += technical/bitmap-format
111 TECH_DOCS += technical/bundle-uri
112 TECH_DOCS += technical/hash-function-transition
113 TECH_DOCS += technical/long-running-process-protocol
114 TECH_DOCS += technical/multi-pack-index
115 TECH_DOCS += technical/pack-heuristics
116 TECH_DOCS += technical/parallel-checkout
117 TECH_DOCS += technical/partial-clone
118 TECH_DOCS += technical/racy-git
119 TECH_DOCS += technical/reftable
120 TECH_DOCS += technical/scalar
121 TECH_DOCS += technical/send-pack-pipeline
122 TECH_DOCS += technical/shallow
123 TECH_DOCS += technical/trivial-merge
124 SP_ARTICLES += $(TECH_DOCS)
125 SP_ARTICLES += technical/api-index
127 ARTICLES_HTML += $(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES))
128 HTML_FILTER ?= $(ARTICLES_HTML) $(OBSOLETE_HTML)
129 DOC_HTML = $(MAN_HTML) $(filter $(HTML_FILTER),$(ARTICLES_HTML) $(OBSOLETE_HTML))
131 DOC_MAN1 = $(patsubst %.txt,%.1,$(filter $(MAN_FILTER),$(MAN1_TXT)))
132 DOC_MAN5 = $(patsubst %.txt,%.5,$(filter $(MAN_FILTER),$(MAN5_TXT)))
133 DOC_MAN7 = $(patsubst %.txt,%.7,$(filter $(MAN_FILTER),$(MAN7_TXT)))
135 prefix ?= $(HOME)
136 bindir ?= $(prefix)/bin
137 htmldir ?= $(prefix)/share/doc/git-doc
138 infodir ?= $(prefix)/share/info
139 pdfdir ?= $(prefix)/share/doc/git-doc
140 mandir ?= $(prefix)/share/man
141 man1dir = $(mandir)/man1
142 man5dir = $(mandir)/man5
143 man7dir = $(mandir)/man7
144 # DESTDIR =
146 ASCIIDOC = asciidoc
147 ASCIIDOC_EXTRA =
148 ASCIIDOC_HTML = xhtml11
149 ASCIIDOC_DOCBOOK = docbook
150 ASCIIDOC_CONF = -f asciidoc.conf
151 ASCIIDOC_COMMON = $(ASCIIDOC) $(ASCIIDOC_EXTRA) $(ASCIIDOC_CONF) \
152 -amanversion=$(GIT_VERSION) \
153 -amanmanual='Git Manual' -amansource='Git'
154 ASCIIDOC_DEPS = asciidoc.conf GIT-ASCIIDOCFLAGS
155 TXT_TO_HTML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_HTML)
156 TXT_TO_XML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_DOCBOOK)
157 MANPAGE_XSL = manpage-normal.xsl
158 XMLTO = xmlto
159 XMLTO_EXTRA =
160 INSTALL ?= install
161 RM ?= rm -f
162 MAN_REPO = ../../git-manpages
163 HTML_REPO = ../../git-htmldocs
165 MAKEINFO = makeinfo
166 INSTALL_INFO = install-info
167 DOCBOOK2X_TEXI = docbook2x-texi
168 DBLATEX = dblatex
169 ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex
170 DBLATEX_COMMON = -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty
171 ifndef PERL_PATH
172 PERL_PATH = /usr/bin/perl
173 endif
175 -include ../config.mak.autogen
176 -include ../config.mak
178 ifndef NO_MAN_BOLD_LITERAL
179 XMLTO_EXTRA += -m manpage-bold-literal.xsl
180 endif
182 # Newer DocBook stylesheet emits warning cruft in the output when
183 # this is not set, and if set it shows an absolute link. Older
184 # stylesheets simply ignore this parameter.
186 # Distros may want to use MAN_BASE_URL=file:///path/to/git/docs/
187 # or similar.
188 ifndef MAN_BASE_URL
189 MAN_BASE_URL = file://$(htmldir)/
190 endif
191 XMLTO_EXTRA += -m manpage-base-url.xsl
193 # If your target system uses GNU groff, it may try to render
194 # apostrophes as a "pretty" apostrophe using unicode. This breaks
195 # cut&paste, so you should set GNU_ROFF to force them to be ASCII
196 # apostrophes. Unfortunately does not work with non-GNU roff.
197 ifdef GNU_ROFF
198 XMLTO_EXTRA += -m manpage-quote-apos.xsl
199 endif
201 ifdef USE_ASCIIDOCTOR
202 ASCIIDOC = asciidoctor
203 ASCIIDOC_CONF =
204 ASCIIDOC_HTML = xhtml5
205 ASCIIDOC_DOCBOOK = docbook5
206 ASCIIDOC_EXTRA += -acompat-mode -atabsize=8
207 ASCIIDOC_EXTRA += -I. -rasciidoctor-extensions
208 ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
209 ASCIIDOC_DEPS = asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
210 DBLATEX_COMMON =
211 XMLTO_EXTRA += --skip-validation
212 XMLTO_EXTRA += -x manpage.xsl
213 endif
215 SHELL_PATH ?= $(SHELL)
216 # Shell quote;
217 SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
219 ifdef DEFAULT_PAGER
220 DEFAULT_PAGER_SQ = $(subst ','\'',$(DEFAULT_PAGER))
221 ASCIIDOC_EXTRA += -a 'git-default-pager=$(DEFAULT_PAGER_SQ)'
222 endif
224 ifdef DEFAULT_EDITOR
225 DEFAULT_EDITOR_SQ = $(subst ','\'',$(DEFAULT_EDITOR))
226 ASCIIDOC_EXTRA += -a 'git-default-editor=$(DEFAULT_EDITOR_SQ)'
227 endif
229 all: html man
231 html: $(DOC_HTML)
233 man: man1 man5 man7
234 man1: $(DOC_MAN1)
235 man5: $(DOC_MAN5)
236 man7: $(DOC_MAN7)
238 info: git.info gitman.info
240 pdf: user-manual.pdf
242 install: install-man
244 install-man: man
245 $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
246 $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir)
247 $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir)
248 $(INSTALL) -m 644 $(DOC_MAN1) $(DESTDIR)$(man1dir)
249 $(INSTALL) -m 644 $(DOC_MAN5) $(DESTDIR)$(man5dir)
250 $(INSTALL) -m 644 $(DOC_MAN7) $(DESTDIR)$(man7dir)
252 install-info: info
253 $(INSTALL) -d -m 755 $(DESTDIR)$(infodir)
254 $(INSTALL) -m 644 git.info gitman.info $(DESTDIR)$(infodir)
255 if test -r $(DESTDIR)$(infodir)/dir; then \
256 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) git.info ;\
257 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) gitman.info ;\
258 else \
259 echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \
262 install-pdf: pdf
263 $(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir)
264 $(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir)
266 install-html: html
267 '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir)
269 ../GIT-VERSION-FILE: FORCE
270 $(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) GIT-VERSION-FILE
272 ifneq ($(filter-out lint-docs clean,$(MAKECMDGOALS)),)
273 -include ../GIT-VERSION-FILE
274 endif
277 # Determine "include::" file references in asciidoc files.
279 docdep_prereqs = \
280 mergetools-list.made $(mergetools_txt) \
281 cmd-list.made $(cmds_txt)
283 doc.dep : $(docdep_prereqs) $(DOC_DEP_TXT) build-docdep.perl
284 $(QUIET_GEN)$(PERL_PATH) ./build-docdep.perl >$@ $(QUIET_STDERR)
286 ifneq ($(MAKECMDGOALS),clean)
287 -include doc.dep
288 endif
290 cmds_txt = cmds-ancillaryinterrogators.txt \
291 cmds-ancillarymanipulators.txt \
292 cmds-mainporcelain.txt \
293 cmds-plumbinginterrogators.txt \
294 cmds-plumbingmanipulators.txt \
295 cmds-synchingrepositories.txt \
296 cmds-synchelpers.txt \
297 cmds-guide.txt \
298 cmds-developerinterfaces.txt \
299 cmds-userinterfaces.txt \
300 cmds-purehelpers.txt \
301 cmds-foreignscminterface.txt
303 $(cmds_txt): cmd-list.made
305 cmd-list.made: cmd-list.perl ../command-list.txt $(MAN1_TXT)
306 $(QUIET_GEN)$(PERL_PATH) ./cmd-list.perl ../command-list.txt $(cmds_txt) $(QUIET_STDERR) && \
307 date >$@
309 mergetools_txt = mergetools-diff.txt mergetools-merge.txt
311 $(mergetools_txt): mergetools-list.made
313 mergetools-list.made: ../git-mergetool--lib.sh $(wildcard ../mergetools/*)
314 $(QUIET_GEN) \
315 $(SHELL_PATH) -c 'MERGE_TOOLS_DIR=../mergetools && TOOL_MODE=diff && \
316 . ../git-mergetool--lib.sh && \
317 show_tool_names can_diff' | sed -e "s/\([a-z0-9]*\)/\`\1\`;;/" >mergetools-diff.txt && \
318 $(SHELL_PATH) -c 'MERGE_TOOLS_DIR=../mergetools && TOOL_MODE=merge && \
319 . ../git-mergetool--lib.sh && \
320 show_tool_names can_merge' | sed -e "s/\([a-z0-9]*\)/\`\1\`;;/" >mergetools-merge.txt && \
321 date >$@
323 TRACK_ASCIIDOCFLAGS = $(subst ','\'',$(ASCIIDOC_COMMON):$(ASCIIDOC_HTML):$(ASCIIDOC_DOCBOOK))
325 GIT-ASCIIDOCFLAGS: FORCE
326 @FLAGS='$(TRACK_ASCIIDOCFLAGS)'; \
327 if test x"$$FLAGS" != x"`cat GIT-ASCIIDOCFLAGS 2>/dev/null`" ; then \
328 echo >&2 " * new asciidoc flags"; \
329 echo "$$FLAGS" >GIT-ASCIIDOCFLAGS; \
332 clean:
333 $(RM) -rf .build/
334 $(RM) *.xml *.xml+ *.html *.html+ *.1 *.5 *.7
335 $(RM) *.texi *.texi+ *.texi++ git.info gitman.info
336 $(RM) *.pdf
337 $(RM) howto-index.txt howto/*.html doc.dep
338 $(RM) technical/*.html technical/api-index.txt
339 $(RM) SubmittingPatches.txt
340 $(RM) $(cmds_txt) $(mergetools_txt) *.made
341 $(RM) manpage-base-url.xsl
342 $(RM) GIT-ASCIIDOCFLAGS
344 $(MAN_HTML): %.html : %.txt $(ASCIIDOC_DEPS)
345 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) -d manpage -o $@ $<
347 $(OBSOLETE_HTML): %.html : %.txto $(ASCIIDOC_DEPS)
348 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) -o $@ $<
350 manpage-base-url.xsl: manpage-base-url.xsl.in
351 $(QUIET_GEN)sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
353 %.1 %.5 %.7 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
354 $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
356 %.xml : %.txt $(ASCIIDOC_DEPS)
357 $(QUIET_ASCIIDOC)$(TXT_TO_XML) -d manpage -o $@ $<
359 user-manual.xml: user-manual.txt user-manual.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
360 $(QUIET_ASCIIDOC)$(TXT_TO_XML) -d book -o $@ $<
362 technical/api-index.txt: technical/api-index-skel.txt \
363 technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
364 $(QUIET_GEN)cd technical && '$(SHELL_PATH_SQ)' ./api-index.sh
366 technical/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
367 $(patsubst %,%.html,$(API_DOCS) technical/api-index $(TECH_DOCS)): %.html : %.txt \
368 asciidoc.conf GIT-ASCIIDOCFLAGS
369 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
371 SubmittingPatches.txt: SubmittingPatches
372 $(QUIET_GEN) cp $< $@
374 XSLT = docbook.xsl
375 XSLTOPTS =
376 XSLTOPTS += --xinclude
377 XSLTOPTS += --stringparam html.stylesheet docbook-xsl.css
378 XSLTOPTS += --param generate.consistent.ids 1
380 user-manual.html: user-manual.xml $(XSLT)
381 $(QUIET_XSLTPROC)xsltproc $(XSLTOPTS) -o $@ $(XSLT) $<
383 git.info: user-manual.texi
384 $(QUIET_MAKEINFO)$(MAKEINFO) --no-split -o $@ user-manual.texi
386 user-manual.texi: user-manual.xml
387 $(QUIET_DB2TEXI)$(DOCBOOK2X_TEXI) user-manual.xml --encoding=UTF-8 --to-stdout >$@+ && \
388 $(PERL_PATH) fix-texi.perl <$@+ >$@ && \
389 $(RM) $@+
391 user-manual.pdf: user-manual.xml
392 $(QUIET_DBLATEX)$(DBLATEX) -o $@ $(DBLATEX_COMMON) $<
394 gitman.texi: $(MAN_XML) cat-texi.perl texi.xsl
395 $(QUIET_DB2TEXI) \
396 ($(foreach xml,$(sort $(MAN_XML)),xsltproc -o $(xml)+ texi.xsl $(xml) && \
397 $(DOCBOOK2X_TEXI) --encoding=UTF-8 --to-stdout $(xml)+ && \
398 $(RM) $(xml)+ &&) true) > $@+ && \
399 $(PERL_PATH) cat-texi.perl $@ <$@+ >$@ && \
400 $(RM) $@+
402 gitman.info: gitman.texi
403 $(QUIET_MAKEINFO)$(MAKEINFO) --no-split --no-validate $<
405 $(patsubst %.txt,%.texi,$(MAN_TXT)): %.texi : %.xml
406 $(QUIET_DB2TEXI)$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@
408 howto-index.txt: howto-index.sh $(HOWTO_TXT)
409 $(QUIET_GEN)'$(SHELL_PATH_SQ)' ./howto-index.sh $(sort $(HOWTO_TXT)) >$@
411 $(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
412 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
414 WEBDOC_DEST = /pub/software/scm/git/docs
416 howto/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
417 $(patsubst %.txt,%.html,$(HOWTO_TXT)): %.html : %.txt GIT-ASCIIDOCFLAGS
418 $(QUIET_ASCIIDOC) \
419 sed -e '1,/^$$/d' $< | \
420 $(TXT_TO_HTML) - >$@
422 install-webdoc : html
423 '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST)
425 # You must have a clone of 'git-htmldocs' and 'git-manpages' repositories
426 # next to the 'git' repository itself for the following to work.
428 quick-install: quick-install-man
430 require-manrepo::
431 @if test ! -d $(MAN_REPO); \
432 then echo "git-manpages repository must exist at $(MAN_REPO)"; exit 1; fi
434 quick-install-man: require-manrepo
435 '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(MAN_REPO) $(DESTDIR)$(mandir) $(GIT_MAN_REF)
437 require-htmlrepo::
438 @if test ! -d $(HTML_REPO); \
439 then echo "git-htmldocs repository must exist at $(HTML_REPO)"; exit 1; fi
441 quick-install-html: require-htmlrepo
442 '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REPO) $(DESTDIR)$(htmldir) $(GIT_MAN_REF)
444 print-man1:
445 @for i in $(MAN1_TXT); do echo $$i; done
447 ## Lint: gitlink
448 LINT_DOCS_GITLINK = $(patsubst %.txt,.build/lint-docs/gitlink/%.ok,$(HOWTO_TXT) $(DOC_DEP_TXT))
449 $(LINT_DOCS_GITLINK): lint-gitlink.perl
450 $(LINT_DOCS_GITLINK): .build/lint-docs/gitlink/%.ok: %.txt
451 $(call mkdir_p_parent_template)
452 $(QUIET_LINT_GITLINK)$(PERL_PATH) lint-gitlink.perl \
453 $< \
454 $(HOWTO_TXT) $(DOC_DEP_TXT) \
455 --section=1 $(MAN1_TXT) \
456 --section=5 $(MAN5_TXT) \
457 --section=7 $(MAN7_TXT) >$@
458 .PHONY: lint-docs-gitlink
459 lint-docs-gitlink: $(LINT_DOCS_GITLINK)
461 ## Lint: man-end-blurb
462 LINT_DOCS_MAN_END_BLURB = $(patsubst %.txt,.build/lint-docs/man-end-blurb/%.ok,$(MAN_TXT))
463 $(LINT_DOCS_MAN_END_BLURB): lint-man-end-blurb.perl
464 $(LINT_DOCS_MAN_END_BLURB): .build/lint-docs/man-end-blurb/%.ok: %.txt
465 $(call mkdir_p_parent_template)
466 $(QUIET_LINT_MANEND)$(PERL_PATH) lint-man-end-blurb.perl $< >$@
467 .PHONY: lint-docs-man-end-blurb
469 ## Lint: man-section-order
470 LINT_DOCS_MAN_SECTION_ORDER = $(patsubst %.txt,.build/lint-docs/man-section-order/%.ok,$(MAN_TXT))
471 $(LINT_DOCS_MAN_SECTION_ORDER): lint-man-section-order.perl
472 $(LINT_DOCS_MAN_SECTION_ORDER): .build/lint-docs/man-section-order/%.ok: %.txt
473 $(call mkdir_p_parent_template)
474 $(QUIET_LINT_MANSEC)$(PERL_PATH) lint-man-section-order.perl $< >$@
475 .PHONY: lint-docs-man-section-order
476 lint-docs-man-section-order: $(LINT_DOCS_MAN_SECTION_ORDER)
478 ## Lint: list of targets above
479 .PHONY: lint-docs
480 lint-docs: lint-docs-gitlink
481 lint-docs: lint-docs-man-end-blurb
482 lint-docs: lint-docs-man-section-order
484 ifeq ($(wildcard po/Makefile),po/Makefile)
485 doc-l10n install-l10n::
486 $(MAKE) -C po $@
487 endif
489 .PHONY: FORCE