reftable/basics: improve `binsearch()` test
[alt-git.git] / Documentation / Makefile
blob3f2383a12c77d04f027c64a0b6aed5ad7305e271
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 += ReviewingGuidelines
107 TECH_DOCS += MyFirstContribution
108 TECH_DOCS += MyFirstObjectWalk
109 TECH_DOCS += SubmittingPatches
110 TECH_DOCS += ToolsForGit
111 TECH_DOCS += technical/bitmap-format
112 TECH_DOCS += technical/bundle-uri
113 TECH_DOCS += technical/hash-function-transition
114 TECH_DOCS += technical/long-running-process-protocol
115 TECH_DOCS += technical/multi-pack-index
116 TECH_DOCS += technical/pack-heuristics
117 TECH_DOCS += technical/parallel-checkout
118 TECH_DOCS += technical/partial-clone
119 TECH_DOCS += technical/racy-git
120 TECH_DOCS += technical/reftable
121 TECH_DOCS += technical/scalar
122 TECH_DOCS += technical/send-pack-pipeline
123 TECH_DOCS += technical/shallow
124 TECH_DOCS += technical/trivial-merge
125 TECH_DOCS += technical/unit-tests
126 SP_ARTICLES += $(TECH_DOCS)
127 SP_ARTICLES += technical/api-index
129 ARTICLES_HTML += $(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES))
130 HTML_FILTER ?= $(ARTICLES_HTML) $(OBSOLETE_HTML)
131 DOC_HTML = $(MAN_HTML) $(filter $(HTML_FILTER),$(ARTICLES_HTML) $(OBSOLETE_HTML))
133 DOC_MAN1 = $(patsubst %.txt,%.1,$(filter $(MAN_FILTER),$(MAN1_TXT)))
134 DOC_MAN5 = $(patsubst %.txt,%.5,$(filter $(MAN_FILTER),$(MAN5_TXT)))
135 DOC_MAN7 = $(patsubst %.txt,%.7,$(filter $(MAN_FILTER),$(MAN7_TXT)))
137 prefix ?= $(HOME)
138 bindir ?= $(prefix)/bin
139 htmldir ?= $(prefix)/share/doc/git-doc
140 infodir ?= $(prefix)/share/info
141 pdfdir ?= $(prefix)/share/doc/git-doc
142 mandir ?= $(prefix)/share/man
143 man1dir = $(mandir)/man1
144 man5dir = $(mandir)/man5
145 man7dir = $(mandir)/man7
146 # DESTDIR =
148 GIT_DATE := $(shell git show --quiet --pretty='%as')
150 ASCIIDOC = asciidoc
151 ASCIIDOC_EXTRA =
152 ASCIIDOC_HTML = xhtml11
153 ASCIIDOC_DOCBOOK = docbook
154 ASCIIDOC_CONF = -f asciidoc.conf
155 ASCIIDOC_COMMON = $(ASCIIDOC) $(ASCIIDOC_EXTRA) $(ASCIIDOC_CONF) \
156 -amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)' \
157 -arevdate='$(GIT_DATE)'
158 ASCIIDOC_DEPS = asciidoc.conf GIT-ASCIIDOCFLAGS
159 TXT_TO_HTML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_HTML)
160 TXT_TO_XML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_DOCBOOK)
161 MANPAGE_XSL = manpage-normal.xsl
162 XMLTO = xmlto
163 XMLTO_EXTRA =
164 INSTALL ?= install
165 RM ?= rm -f
166 MAN_REPO = ../../git-manpages
167 HTML_REPO = ../../git-htmldocs
169 MAKEINFO = makeinfo
170 INSTALL_INFO = install-info
171 DOCBOOK2X_TEXI = docbook2x-texi
172 DBLATEX = dblatex
173 ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex
174 DBLATEX_COMMON = -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty
175 ifndef PERL_PATH
176 PERL_PATH = /usr/bin/perl
177 endif
179 -include ../config.mak.autogen
180 -include ../config.mak
182 ifndef NO_MAN_BOLD_LITERAL
183 XMLTO_EXTRA += -m manpage-bold-literal.xsl
184 endif
186 # Newer DocBook stylesheet emits warning cruft in the output when
187 # this is not set, and if set it shows an absolute link. Older
188 # stylesheets simply ignore this parameter.
190 # Distros may want to use MAN_BASE_URL=file:///path/to/git/docs/
191 # or similar.
192 ifndef MAN_BASE_URL
193 MAN_BASE_URL = file://$(htmldir)/
194 endif
195 XMLTO_EXTRA += --stringparam man.base.url.for.relative.links='$(MAN_BASE_URL)'
197 ifdef USE_ASCIIDOCTOR
198 ASCIIDOC = asciidoctor
199 ASCIIDOC_CONF =
200 ASCIIDOC_HTML = xhtml5
201 ASCIIDOC_DOCBOOK = docbook5
202 ASCIIDOC_EXTRA += -acompat-mode -atabsize=8
203 ASCIIDOC_EXTRA += -I. -rasciidoctor-extensions
204 ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
205 ASCIIDOC_DEPS = asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
206 DBLATEX_COMMON =
207 XMLTO_EXTRA += --skip-validation
208 XMLTO_EXTRA += -x manpage.xsl
209 endif
211 SHELL_PATH ?= $(SHELL)
212 # Shell quote;
213 SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
215 ifdef DEFAULT_PAGER
216 DEFAULT_PAGER_SQ = $(subst ','\'',$(DEFAULT_PAGER))
217 ASCIIDOC_EXTRA += -a 'git-default-pager=$(DEFAULT_PAGER_SQ)'
218 endif
220 ifdef DEFAULT_EDITOR
221 DEFAULT_EDITOR_SQ = $(subst ','\'',$(DEFAULT_EDITOR))
222 ASCIIDOC_EXTRA += -a 'git-default-editor=$(DEFAULT_EDITOR_SQ)'
223 endif
225 all: html man
227 html: $(DOC_HTML)
229 man: man1 man5 man7
230 man1: $(DOC_MAN1)
231 man5: $(DOC_MAN5)
232 man7: $(DOC_MAN7)
234 info: git.info gitman.info
236 pdf: user-manual.pdf
238 install: install-man
240 install-man: man
241 $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
242 $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir)
243 $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir)
244 $(INSTALL) -m 644 $(DOC_MAN1) $(DESTDIR)$(man1dir)
245 $(INSTALL) -m 644 $(DOC_MAN5) $(DESTDIR)$(man5dir)
246 $(INSTALL) -m 644 $(DOC_MAN7) $(DESTDIR)$(man7dir)
248 install-info: info
249 $(INSTALL) -d -m 755 $(DESTDIR)$(infodir)
250 $(INSTALL) -m 644 git.info gitman.info $(DESTDIR)$(infodir)
251 if test -r $(DESTDIR)$(infodir)/dir; then \
252 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) git.info ;\
253 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) gitman.info ;\
254 else \
255 echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \
258 install-pdf: pdf
259 $(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir)
260 $(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir)
262 install-html: html
263 '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir)
265 ../GIT-VERSION-FILE: FORCE
266 $(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) GIT-VERSION-FILE
268 ifneq ($(filter-out lint-docs clean,$(MAKECMDGOALS)),)
269 -include ../GIT-VERSION-FILE
270 endif
273 # Determine "include::" file references in asciidoc files.
275 docdep_prereqs = \
276 mergetools-list.made $(mergetools_txt) \
277 cmd-list.made $(cmds_txt)
279 doc.dep : $(docdep_prereqs) $(DOC_DEP_TXT) build-docdep.perl
280 $(QUIET_GEN)$(PERL_PATH) ./build-docdep.perl >$@ $(QUIET_STDERR)
282 ifneq ($(MAKECMDGOALS),clean)
283 -include doc.dep
284 endif
286 cmds_txt = cmds-ancillaryinterrogators.txt \
287 cmds-ancillarymanipulators.txt \
288 cmds-mainporcelain.txt \
289 cmds-plumbinginterrogators.txt \
290 cmds-plumbingmanipulators.txt \
291 cmds-synchingrepositories.txt \
292 cmds-synchelpers.txt \
293 cmds-guide.txt \
294 cmds-developerinterfaces.txt \
295 cmds-userinterfaces.txt \
296 cmds-purehelpers.txt \
297 cmds-foreignscminterface.txt
299 $(cmds_txt): cmd-list.made
301 cmd-list.made: cmd-list.perl ../command-list.txt $(MAN1_TXT)
302 $(QUIET_GEN)$(PERL_PATH) ./cmd-list.perl ../command-list.txt $(cmds_txt) $(QUIET_STDERR) && \
303 date >$@
305 mergetools_txt = mergetools-diff.txt mergetools-merge.txt
307 $(mergetools_txt): mergetools-list.made
309 mergetools-list.made: ../git-mergetool--lib.sh $(wildcard ../mergetools/*)
310 $(QUIET_GEN) \
311 $(SHELL_PATH) -c 'MERGE_TOOLS_DIR=../mergetools && TOOL_MODE=diff && \
312 . ../git-mergetool--lib.sh && \
313 show_tool_names can_diff' | sed -e "s/\([a-z0-9]*\)/\`\1\`;;/" >mergetools-diff.txt && \
314 $(SHELL_PATH) -c 'MERGE_TOOLS_DIR=../mergetools && TOOL_MODE=merge && \
315 . ../git-mergetool--lib.sh && \
316 show_tool_names can_merge' | sed -e "s/\([a-z0-9]*\)/\`\1\`;;/" >mergetools-merge.txt && \
317 date >$@
319 TRACK_ASCIIDOCFLAGS = $(subst ','\'',$(ASCIIDOC_COMMON):$(ASCIIDOC_HTML):$(ASCIIDOC_DOCBOOK))
321 GIT-ASCIIDOCFLAGS: FORCE
322 @FLAGS='$(TRACK_ASCIIDOCFLAGS)'; \
323 if test x"$$FLAGS" != x"`cat GIT-ASCIIDOCFLAGS 2>/dev/null`" ; then \
324 echo >&2 " * new asciidoc flags"; \
325 echo "$$FLAGS" >GIT-ASCIIDOCFLAGS; \
328 clean:
329 $(RM) -rf .build/
330 $(RM) *.xml *.xml+ *.html *.html+ *.1 *.5 *.7
331 $(RM) *.texi *.texi+ *.texi++ git.info gitman.info
332 $(RM) *.pdf
333 $(RM) howto-index.txt howto/*.html doc.dep
334 $(RM) technical/*.html technical/api-index.txt
335 $(RM) SubmittingPatches.txt
336 $(RM) $(cmds_txt) $(mergetools_txt) *.made
337 $(RM) GIT-ASCIIDOCFLAGS
339 $(MAN_HTML): %.html : %.txt $(ASCIIDOC_DEPS)
340 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) -d manpage -o $@ $<
342 $(OBSOLETE_HTML): %.html : %.txto $(ASCIIDOC_DEPS)
343 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) -o $@ $<
345 manpage-prereqs := $(wildcard manpage*.xsl)
346 manpage-cmd = $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
348 %.1 : %.xml $(manpage-prereqs)
349 $(manpage-cmd)
350 %.5 : %.xml $(manpage-prereqs)
351 $(manpage-cmd)
352 %.7 : %.xml $(manpage-prereqs)
353 $(manpage-cmd)
355 %.xml : %.txt $(ASCIIDOC_DEPS)
356 $(QUIET_ASCIIDOC)$(TXT_TO_XML) -d manpage -o $@ $<
358 user-manual.xml: user-manual.txt user-manual.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
359 $(QUIET_ASCIIDOC)$(TXT_TO_XML) -d book -o $@ $<
361 technical/api-index.txt: technical/api-index-skel.txt \
362 technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
363 $(QUIET_GEN)cd technical && '$(SHELL_PATH_SQ)' ./api-index.sh
365 technical/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
366 $(patsubst %,%.html,$(API_DOCS) technical/api-index $(TECH_DOCS)): %.html : %.txt \
367 asciidoc.conf GIT-ASCIIDOCFLAGS
368 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
370 SubmittingPatches.txt: SubmittingPatches
371 $(QUIET_GEN) cp $< $@
373 XSLT = docbook.xsl
374 XSLTOPTS =
375 XSLTOPTS += --xinclude
376 XSLTOPTS += --stringparam html.stylesheet docbook-xsl.css
377 XSLTOPTS += --param generate.consistent.ids 1
379 user-manual.html: user-manual.xml $(XSLT)
380 $(QUIET_XSLTPROC)xsltproc $(XSLTOPTS) -o $@ $(XSLT) $<
382 git.info: user-manual.texi
383 $(QUIET_MAKEINFO)$(MAKEINFO) --no-split -o $@ user-manual.texi
385 user-manual.texi: user-manual.xml
386 $(QUIET_DB2TEXI)$(DOCBOOK2X_TEXI) user-manual.xml --encoding=UTF-8 --to-stdout >$@+ && \
387 $(PERL_PATH) fix-texi.perl <$@+ >$@ && \
388 $(RM) $@+
390 user-manual.pdf: user-manual.xml
391 $(QUIET_DBLATEX)$(DBLATEX) -o $@ $(DBLATEX_COMMON) $<
393 gitman.texi: $(MAN_XML) cat-texi.perl texi.xsl
394 $(QUIET_DB2TEXI) \
395 ($(foreach xml,$(sort $(MAN_XML)),xsltproc -o $(xml)+ texi.xsl $(xml) && \
396 $(DOCBOOK2X_TEXI) --encoding=UTF-8 --to-stdout $(xml)+ && \
397 $(RM) $(xml)+ &&) true) > $@+ && \
398 $(PERL_PATH) cat-texi.perl $@ <$@+ >$@ && \
399 $(RM) $@+
401 gitman.info: gitman.texi
402 $(QUIET_MAKEINFO)$(MAKEINFO) --no-split --no-validate $<
404 $(patsubst %.txt,%.texi,$(MAN_TXT)): %.texi : %.xml
405 $(QUIET_DB2TEXI)$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@
407 howto-index.txt: howto-index.sh $(HOWTO_TXT)
408 $(QUIET_GEN)'$(SHELL_PATH_SQ)' ./howto-index.sh $(sort $(HOWTO_TXT)) >$@
410 $(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
411 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
413 WEBDOC_DEST = /pub/software/scm/git/docs
415 howto/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
416 $(patsubst %.txt,%.html,$(HOWTO_TXT)): %.html : %.txt GIT-ASCIIDOCFLAGS
417 $(QUIET_ASCIIDOC) \
418 sed -e '1,/^$$/d' $< | \
419 $(TXT_TO_HTML) - >$@
421 install-webdoc : html
422 '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST)
424 # You must have a clone of 'git-htmldocs' and 'git-manpages' repositories
425 # next to the 'git' repository itself for the following to work.
427 quick-install: quick-install-man
429 require-manrepo::
430 @if test ! -d $(MAN_REPO); \
431 then echo "git-manpages repository must exist at $(MAN_REPO)"; exit 1; fi
433 quick-install-man: require-manrepo
434 '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(MAN_REPO) $(DESTDIR)$(mandir) $(GIT_MAN_REF)
436 require-htmlrepo::
437 @if test ! -d $(HTML_REPO); \
438 then echo "git-htmldocs repository must exist at $(HTML_REPO)"; exit 1; fi
440 quick-install-html: require-htmlrepo
441 '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REPO) $(DESTDIR)$(htmldir) $(GIT_MAN_REF)
443 print-man1:
444 @for i in $(MAN1_TXT); do echo $$i; done
446 ## Lint: gitlink
447 LINT_DOCS_GITLINK = $(patsubst %.txt,.build/lint-docs/gitlink/%.ok,$(HOWTO_TXT) $(DOC_DEP_TXT))
448 $(LINT_DOCS_GITLINK): lint-gitlink.perl
449 $(LINT_DOCS_GITLINK): .build/lint-docs/gitlink/%.ok: %.txt
450 $(call mkdir_p_parent_template)
451 $(QUIET_LINT_GITLINK)$(PERL_PATH) lint-gitlink.perl \
452 $< \
453 $(HOWTO_TXT) $(DOC_DEP_TXT) \
454 --section=1 $(MAN1_TXT) \
455 --section=5 $(MAN5_TXT) \
456 --section=7 $(MAN7_TXT) >$@
457 .PHONY: lint-docs-gitlink
458 lint-docs-gitlink: $(LINT_DOCS_GITLINK)
460 ## Lint: man-end-blurb
461 LINT_DOCS_MAN_END_BLURB = $(patsubst %.txt,.build/lint-docs/man-end-blurb/%.ok,$(MAN_TXT))
462 $(LINT_DOCS_MAN_END_BLURB): lint-man-end-blurb.perl
463 $(LINT_DOCS_MAN_END_BLURB): .build/lint-docs/man-end-blurb/%.ok: %.txt
464 $(call mkdir_p_parent_template)
465 $(QUIET_LINT_MANEND)$(PERL_PATH) lint-man-end-blurb.perl $< >$@
466 .PHONY: lint-docs-man-end-blurb
468 ## Lint: man-section-order
469 LINT_DOCS_MAN_SECTION_ORDER = $(patsubst %.txt,.build/lint-docs/man-section-order/%.ok,$(MAN_TXT))
470 $(LINT_DOCS_MAN_SECTION_ORDER): lint-man-section-order.perl
471 $(LINT_DOCS_MAN_SECTION_ORDER): .build/lint-docs/man-section-order/%.ok: %.txt
472 $(call mkdir_p_parent_template)
473 $(QUIET_LINT_MANSEC)$(PERL_PATH) lint-man-section-order.perl $< >$@
474 .PHONY: lint-docs-man-section-order
475 lint-docs-man-section-order: $(LINT_DOCS_MAN_SECTION_ORDER)
477 .PHONY: lint-docs-fsck-msgids
478 LINT_DOCS_FSCK_MSGIDS = .build/lint-docs/fsck-msgids.ok
479 $(LINT_DOCS_FSCK_MSGIDS): lint-fsck-msgids.perl
480 $(LINT_DOCS_FSCK_MSGIDS): ../fsck.h fsck-msgids.txt
481 $(call mkdir_p_parent_template)
482 $(QUIET_GEN)$(PERL_PATH) lint-fsck-msgids.perl \
483 ../fsck.h fsck-msgids.txt $@
485 lint-docs-fsck-msgids: $(LINT_DOCS_FSCK_MSGIDS)
487 ## Lint: list of targets above
488 .PHONY: lint-docs
489 lint-docs: lint-docs-fsck-msgids
490 lint-docs: lint-docs-gitlink
491 lint-docs: lint-docs-man-end-blurb
492 lint-docs: lint-docs-man-section-order
494 ifeq ($(wildcard po/Makefile),po/Makefile)
495 doc-l10n install-l10n::
496 $(MAKE) -C po $@
497 endif
499 .PHONY: FORCE