merge-recursive: honor diff.algorithm
[git/gitster.git] / Documentation / Makefile
blobdc65759cb1b26062f3a2cdec20c012c49c9863e0
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 += gitpacking.txt
55 MAN7_TXT += gitnamespaces.txt
56 MAN7_TXT += gitremote-helpers.txt
57 MAN7_TXT += gitrevisions.txt
58 MAN7_TXT += gitsubmodules.txt
59 MAN7_TXT += gittutorial-2.txt
60 MAN7_TXT += gittutorial.txt
61 MAN7_TXT += gitworkflows.txt
63 HOWTO_TXT += $(wildcard howto/*.txt)
65 DOC_DEP_TXT += $(wildcard *.txt)
66 DOC_DEP_TXT += $(wildcard config/*.txt)
67 DOC_DEP_TXT += $(wildcard includes/*.txt)
69 ifdef MAN_FILTER
70 MAN_TXT = $(filter $(MAN_FILTER),$(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT))
71 else
72 MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT)
73 MAN_FILTER = $(MAN_TXT)
74 endif
76 MAN_XML = $(patsubst %.txt,%.xml,$(MAN_TXT))
77 MAN_HTML = $(patsubst %.txt,%.html,$(MAN_TXT))
78 GIT_MAN_REF = master
80 OBSOLETE_HTML += everyday.html
81 OBSOLETE_HTML += git-remote-helpers.html
83 ARTICLES += howto-index
84 ARTICLES += git-tools
85 ARTICLES += git-bisect-lk2009
86 # with their own formatting rules.
87 SP_ARTICLES += user-manual
88 SP_ARTICLES += howto/new-command
89 SP_ARTICLES += howto/revert-branch-rebase
90 SP_ARTICLES += howto/using-merge-subtree
91 SP_ARTICLES += howto/using-signed-tag-in-pull-request
92 SP_ARTICLES += howto/use-git-daemon
93 SP_ARTICLES += howto/update-hook-example
94 SP_ARTICLES += howto/setup-git-server-over-http
95 SP_ARTICLES += howto/separating-topic-branches
96 SP_ARTICLES += howto/revert-a-faulty-merge
97 SP_ARTICLES += howto/recover-corrupted-blob-object
98 SP_ARTICLES += howto/recover-corrupted-object-harder
99 SP_ARTICLES += howto/rebuild-from-update-hook
100 SP_ARTICLES += howto/rebase-from-internal-branch
101 SP_ARTICLES += howto/keep-canonical-history-correct
102 SP_ARTICLES += howto/maintain-git
103 SP_ARTICLES += howto/coordinate-embargoed-releases
104 API_DOCS = $(patsubst %.txt,%,$(filter-out technical/api-index-skel.txt technical/api-index.txt, $(wildcard technical/api-*.txt)))
105 SP_ARTICLES += $(API_DOCS)
107 TECH_DOCS += DecisionMaking
108 TECH_DOCS += ReviewingGuidelines
109 TECH_DOCS += MyFirstContribution
110 TECH_DOCS += MyFirstObjectWalk
111 TECH_DOCS += SubmittingPatches
112 TECH_DOCS += ToolsForGit
113 TECH_DOCS += technical/bitmap-format
114 TECH_DOCS += technical/bundle-uri
115 TECH_DOCS += technical/hash-function-transition
116 TECH_DOCS += technical/long-running-process-protocol
117 TECH_DOCS += technical/multi-pack-index
118 TECH_DOCS += technical/pack-heuristics
119 TECH_DOCS += technical/parallel-checkout
120 TECH_DOCS += technical/partial-clone
121 TECH_DOCS += technical/racy-git
122 TECH_DOCS += technical/reftable
123 TECH_DOCS += technical/scalar
124 TECH_DOCS += technical/send-pack-pipeline
125 TECH_DOCS += technical/shallow
126 TECH_DOCS += technical/trivial-merge
127 TECH_DOCS += technical/unit-tests
128 SP_ARTICLES += $(TECH_DOCS)
129 SP_ARTICLES += technical/api-index
131 ARTICLES_HTML += $(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES))
132 HTML_FILTER ?= $(ARTICLES_HTML) $(OBSOLETE_HTML)
133 DOC_HTML = $(MAN_HTML) $(filter $(HTML_FILTER),$(ARTICLES_HTML) $(OBSOLETE_HTML))
135 DOC_MAN1 = $(patsubst %.txt,%.1,$(filter $(MAN_FILTER),$(MAN1_TXT)))
136 DOC_MAN5 = $(patsubst %.txt,%.5,$(filter $(MAN_FILTER),$(MAN5_TXT)))
137 DOC_MAN7 = $(patsubst %.txt,%.7,$(filter $(MAN_FILTER),$(MAN7_TXT)))
139 prefix ?= $(HOME)
140 bindir ?= $(prefix)/bin
141 htmldir ?= $(prefix)/share/doc/git-doc
142 infodir ?= $(prefix)/share/info
143 pdfdir ?= $(prefix)/share/doc/git-doc
144 mandir ?= $(prefix)/share/man
145 man1dir = $(mandir)/man1
146 man5dir = $(mandir)/man5
147 man7dir = $(mandir)/man7
148 # DESTDIR =
150 GIT_DATE := $(shell git show --quiet --pretty='%as')
152 ASCIIDOC = asciidoc
153 ASCIIDOC_EXTRA =
154 ASCIIDOC_HTML = xhtml11
155 ASCIIDOC_DOCBOOK = docbook
156 ASCIIDOC_CONF = -f asciidoc.conf
157 ASCIIDOC_COMMON = $(ASCIIDOC) $(ASCIIDOC_EXTRA) $(ASCIIDOC_CONF) \
158 -amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)' \
159 -arevdate='$(GIT_DATE)'
160 ASCIIDOC_DEPS = asciidoc.conf GIT-ASCIIDOCFLAGS
161 TXT_TO_HTML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_HTML)
162 TXT_TO_XML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_DOCBOOK)
163 MANPAGE_XSL = manpage-normal.xsl
164 XMLTO = xmlto
165 XMLTO_EXTRA =
166 INSTALL ?= install
167 RM ?= rm -f
168 MAN_REPO = ../../git-manpages
169 HTML_REPO = ../../git-htmldocs
171 MAKEINFO = makeinfo
172 INSTALL_INFO = install-info
173 DOCBOOK2X_TEXI = docbook2x-texi
174 DBLATEX = dblatex
175 ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex
176 DBLATEX_COMMON = -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty
177 ifndef PERL_PATH
178 PERL_PATH = /usr/bin/perl
179 endif
181 -include ../config.mak.autogen
182 -include ../config.mak
184 ifndef NO_MAN_BOLD_LITERAL
185 XMLTO_EXTRA += -m manpage-bold-literal.xsl
186 endif
188 # Newer DocBook stylesheet emits warning cruft in the output when
189 # this is not set, and if set it shows an absolute link. Older
190 # stylesheets simply ignore this parameter.
192 # Distros may want to use MAN_BASE_URL=file:///path/to/git/docs/
193 # or similar.
194 ifndef MAN_BASE_URL
195 MAN_BASE_URL = file://$(htmldir)/
196 endif
197 XMLTO_EXTRA += --stringparam man.base.url.for.relative.links='$(MAN_BASE_URL)'
199 ifdef USE_ASCIIDOCTOR
200 ASCIIDOC = asciidoctor
201 ASCIIDOC_CONF =
202 ASCIIDOC_HTML = xhtml5
203 ASCIIDOC_DOCBOOK = docbook5
204 ASCIIDOC_EXTRA += -acompat-mode -atabsize=8
205 ASCIIDOC_EXTRA += -I. -rasciidoctor-extensions
206 ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
207 ASCIIDOC_DEPS = asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
208 DBLATEX_COMMON =
209 XMLTO_EXTRA += --skip-validation
210 XMLTO_EXTRA += -x manpage.xsl
211 endif
213 SHELL_PATH ?= $(SHELL)
214 # Shell quote;
215 SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
217 ifdef DEFAULT_PAGER
218 DEFAULT_PAGER_SQ = $(subst ','\'',$(DEFAULT_PAGER))
219 ASCIIDOC_EXTRA += -a 'git-default-pager=$(DEFAULT_PAGER_SQ)'
220 endif
222 ifdef DEFAULT_EDITOR
223 DEFAULT_EDITOR_SQ = $(subst ','\'',$(DEFAULT_EDITOR))
224 ASCIIDOC_EXTRA += -a 'git-default-editor=$(DEFAULT_EDITOR_SQ)'
225 endif
227 all: html man
229 html: $(DOC_HTML)
231 man: man1 man5 man7
232 man1: $(DOC_MAN1)
233 man5: $(DOC_MAN5)
234 man7: $(DOC_MAN7)
236 info: git.info gitman.info
238 pdf: user-manual.pdf
240 install: install-man
242 install-man: man
243 $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
244 $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir)
245 $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir)
246 $(INSTALL) -m 644 $(DOC_MAN1) $(DESTDIR)$(man1dir)
247 $(INSTALL) -m 644 $(DOC_MAN5) $(DESTDIR)$(man5dir)
248 $(INSTALL) -m 644 $(DOC_MAN7) $(DESTDIR)$(man7dir)
250 install-info: info
251 $(INSTALL) -d -m 755 $(DESTDIR)$(infodir)
252 $(INSTALL) -m 644 git.info gitman.info $(DESTDIR)$(infodir)
253 if test -r $(DESTDIR)$(infodir)/dir; then \
254 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) git.info ;\
255 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) gitman.info ;\
256 else \
257 echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \
260 install-pdf: pdf
261 $(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir)
262 $(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir)
264 install-html: html
265 '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir)
267 ../GIT-VERSION-FILE: FORCE
268 $(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) GIT-VERSION-FILE
270 ifneq ($(filter-out lint-docs clean,$(MAKECMDGOALS)),)
271 -include ../GIT-VERSION-FILE
272 endif
275 # Determine "include::" file references in asciidoc files.
277 docdep_prereqs = \
278 mergetools-list.made $(mergetools_txt) \
279 cmd-list.made $(cmds_txt)
281 doc.dep : $(docdep_prereqs) $(DOC_DEP_TXT) build-docdep.perl
282 $(QUIET_GEN)$(PERL_PATH) ./build-docdep.perl >$@ $(QUIET_STDERR)
284 ifneq ($(MAKECMDGOALS),clean)
285 -include doc.dep
286 endif
288 cmds_txt = cmds-ancillaryinterrogators.txt \
289 cmds-ancillarymanipulators.txt \
290 cmds-mainporcelain.txt \
291 cmds-plumbinginterrogators.txt \
292 cmds-plumbingmanipulators.txt \
293 cmds-synchingrepositories.txt \
294 cmds-synchelpers.txt \
295 cmds-guide.txt \
296 cmds-developerinterfaces.txt \
297 cmds-userinterfaces.txt \
298 cmds-purehelpers.txt \
299 cmds-foreignscminterface.txt
301 $(cmds_txt): cmd-list.made
303 cmd-list.made: cmd-list.perl ../command-list.txt $(MAN1_TXT)
304 $(QUIET_GEN)$(PERL_PATH) ./cmd-list.perl ../command-list.txt $(cmds_txt) $(QUIET_STDERR) && \
305 date >$@
307 mergetools_txt = mergetools-diff.txt mergetools-merge.txt
309 $(mergetools_txt): mergetools-list.made
311 mergetools-list.made: ../git-mergetool--lib.sh $(wildcard ../mergetools/*)
312 $(QUIET_GEN) \
313 $(SHELL_PATH) -c 'MERGE_TOOLS_DIR=../mergetools && TOOL_MODE=diff && \
314 . ../git-mergetool--lib.sh && \
315 show_tool_names can_diff' | sed -e "s/\([a-z0-9]*\)/\`\1\`;;/" >mergetools-diff.txt && \
316 $(SHELL_PATH) -c 'MERGE_TOOLS_DIR=../mergetools && TOOL_MODE=merge && \
317 . ../git-mergetool--lib.sh && \
318 show_tool_names can_merge' | sed -e "s/\([a-z0-9]*\)/\`\1\`;;/" >mergetools-merge.txt && \
319 date >$@
321 TRACK_ASCIIDOCFLAGS = $(subst ','\'',$(ASCIIDOC_COMMON):$(ASCIIDOC_HTML):$(ASCIIDOC_DOCBOOK))
323 GIT-ASCIIDOCFLAGS: FORCE
324 @FLAGS='$(TRACK_ASCIIDOCFLAGS)'; \
325 if test x"$$FLAGS" != x"`cat GIT-ASCIIDOCFLAGS 2>/dev/null`" ; then \
326 echo >&2 " * new asciidoc flags"; \
327 echo "$$FLAGS" >GIT-ASCIIDOCFLAGS; \
330 clean:
331 $(RM) -rf .build/
332 $(RM) *.xml *.xml+ *.html *.html+ *.1 *.5 *.7
333 $(RM) *.texi *.texi+ *.texi++ git.info gitman.info
334 $(RM) *.pdf
335 $(RM) howto-index.txt howto/*.html doc.dep
336 $(RM) technical/*.html technical/api-index.txt
337 $(RM) SubmittingPatches.txt
338 $(RM) $(cmds_txt) $(mergetools_txt) *.made
339 $(RM) GIT-ASCIIDOCFLAGS
341 $(MAN_HTML): %.html : %.txt $(ASCIIDOC_DEPS)
342 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) -d manpage -o $@ $<
344 $(OBSOLETE_HTML): %.html : %.txto $(ASCIIDOC_DEPS)
345 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) -o $@ $<
347 manpage-prereqs := $(wildcard manpage*.xsl)
348 manpage-cmd = $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
350 %.1 : %.xml $(manpage-prereqs)
351 $(manpage-cmd)
352 %.5 : %.xml $(manpage-prereqs)
353 $(manpage-cmd)
354 %.7 : %.xml $(manpage-prereqs)
355 $(manpage-cmd)
357 %.xml : %.txt $(ASCIIDOC_DEPS)
358 $(QUIET_ASCIIDOC)$(TXT_TO_XML) -d manpage -o $@ $<
360 user-manual.xml: user-manual.txt user-manual.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
361 $(QUIET_ASCIIDOC)$(TXT_TO_XML) -d book -o $@ $<
363 technical/api-index.txt: technical/api-index-skel.txt \
364 technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
365 $(QUIET_GEN)cd technical && '$(SHELL_PATH_SQ)' ./api-index.sh
367 technical/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
368 $(patsubst %,%.html,$(API_DOCS) technical/api-index $(TECH_DOCS)): %.html : %.txt \
369 asciidoc.conf GIT-ASCIIDOCFLAGS
370 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
372 SubmittingPatches.txt: SubmittingPatches
373 $(QUIET_GEN) cp $< $@
375 XSLT = docbook.xsl
376 XSLTOPTS =
377 XSLTOPTS += --xinclude
378 XSLTOPTS += --stringparam html.stylesheet docbook-xsl.css
379 XSLTOPTS += --param generate.consistent.ids 1
381 user-manual.html: user-manual.xml $(XSLT)
382 $(QUIET_XSLTPROC)xsltproc $(XSLTOPTS) -o $@ $(XSLT) $<
384 git.info: user-manual.texi
385 $(QUIET_MAKEINFO)$(MAKEINFO) --no-split -o $@ user-manual.texi
387 user-manual.texi: user-manual.xml
388 $(QUIET_DB2TEXI)$(DOCBOOK2X_TEXI) user-manual.xml --encoding=UTF-8 --to-stdout >$@+ && \
389 $(PERL_PATH) fix-texi.perl <$@+ >$@ && \
390 $(RM) $@+
392 user-manual.pdf: user-manual.xml
393 $(QUIET_DBLATEX)$(DBLATEX) -o $@ $(DBLATEX_COMMON) $<
395 gitman.texi: $(MAN_XML) cat-texi.perl texi.xsl
396 $(QUIET_DB2TEXI) \
397 ($(foreach xml,$(sort $(MAN_XML)),xsltproc -o $(xml)+ texi.xsl $(xml) && \
398 $(DOCBOOK2X_TEXI) --encoding=UTF-8 --to-stdout $(xml)+ && \
399 $(RM) $(xml)+ &&) true) > $@+ && \
400 $(PERL_PATH) cat-texi.perl $@ <$@+ >$@ && \
401 $(RM) $@+
403 gitman.info: gitman.texi
404 $(QUIET_MAKEINFO)$(MAKEINFO) --no-split --no-validate $<
406 $(patsubst %.txt,%.texi,$(MAN_TXT)): %.texi : %.xml
407 $(QUIET_DB2TEXI)$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@
409 howto-index.txt: howto-index.sh $(HOWTO_TXT)
410 $(QUIET_GEN)'$(SHELL_PATH_SQ)' ./howto-index.sh $(sort $(HOWTO_TXT)) >$@
412 $(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
413 $(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
415 WEBDOC_DEST = /pub/software/scm/git/docs
417 howto/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
418 $(patsubst %.txt,%.html,$(HOWTO_TXT)): %.html : %.txt GIT-ASCIIDOCFLAGS
419 $(QUIET_ASCIIDOC) \
420 sed -e '1,/^$$/d' $< | \
421 $(TXT_TO_HTML) - >$@
423 install-webdoc : html
424 '$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST)
426 # You must have a clone of 'git-htmldocs' and 'git-manpages' repositories
427 # next to the 'git' repository itself for the following to work.
429 quick-install: quick-install-man
431 require-manrepo::
432 @if test ! -d $(MAN_REPO); \
433 then echo "git-manpages repository must exist at $(MAN_REPO)"; exit 1; fi
435 quick-install-man: require-manrepo
436 '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(MAN_REPO) $(DESTDIR)$(mandir) $(GIT_MAN_REF)
438 require-htmlrepo::
439 @if test ! -d $(HTML_REPO); \
440 then echo "git-htmldocs repository must exist at $(HTML_REPO)"; exit 1; fi
442 quick-install-html: require-htmlrepo
443 '$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REPO) $(DESTDIR)$(htmldir) $(GIT_MAN_REF)
445 print-man1:
446 @for i in $(MAN1_TXT); do echo $$i; done
448 ## Lint: gitlink
449 LINT_DOCS_GITLINK = $(patsubst %.txt,.build/lint-docs/gitlink/%.ok,$(HOWTO_TXT) $(DOC_DEP_TXT))
450 $(LINT_DOCS_GITLINK): lint-gitlink.perl
451 $(LINT_DOCS_GITLINK): .build/lint-docs/gitlink/%.ok: %.txt
452 $(call mkdir_p_parent_template)
453 $(QUIET_LINT_GITLINK)$(PERL_PATH) lint-gitlink.perl \
454 $< \
455 $(HOWTO_TXT) $(DOC_DEP_TXT) \
456 --section=1 $(MAN1_TXT) \
457 --section=5 $(MAN5_TXT) \
458 --section=7 $(MAN7_TXT) >$@
459 .PHONY: lint-docs-gitlink
460 lint-docs-gitlink: $(LINT_DOCS_GITLINK)
462 ## Lint: man-end-blurb
463 LINT_DOCS_MAN_END_BLURB = $(patsubst %.txt,.build/lint-docs/man-end-blurb/%.ok,$(MAN_TXT))
464 $(LINT_DOCS_MAN_END_BLURB): lint-man-end-blurb.perl
465 $(LINT_DOCS_MAN_END_BLURB): .build/lint-docs/man-end-blurb/%.ok: %.txt
466 $(call mkdir_p_parent_template)
467 $(QUIET_LINT_MANEND)$(PERL_PATH) lint-man-end-blurb.perl $< >$@
468 .PHONY: lint-docs-man-end-blurb
470 ## Lint: man-section-order
471 LINT_DOCS_MAN_SECTION_ORDER = $(patsubst %.txt,.build/lint-docs/man-section-order/%.ok,$(MAN_TXT))
472 $(LINT_DOCS_MAN_SECTION_ORDER): lint-man-section-order.perl
473 $(LINT_DOCS_MAN_SECTION_ORDER): .build/lint-docs/man-section-order/%.ok: %.txt
474 $(call mkdir_p_parent_template)
475 $(QUIET_LINT_MANSEC)$(PERL_PATH) lint-man-section-order.perl $< >$@
476 .PHONY: lint-docs-man-section-order
477 lint-docs-man-section-order: $(LINT_DOCS_MAN_SECTION_ORDER)
479 .PHONY: lint-docs-fsck-msgids
480 LINT_DOCS_FSCK_MSGIDS = .build/lint-docs/fsck-msgids.ok
481 $(LINT_DOCS_FSCK_MSGIDS): lint-fsck-msgids.perl
482 $(LINT_DOCS_FSCK_MSGIDS): ../fsck.h fsck-msgids.txt
483 $(call mkdir_p_parent_template)
484 $(QUIET_GEN)$(PERL_PATH) lint-fsck-msgids.perl \
485 ../fsck.h fsck-msgids.txt $@
487 lint-docs-fsck-msgids: $(LINT_DOCS_FSCK_MSGIDS)
489 lint-docs-manpages:
490 $(QUIET_GEN)./lint-manpages.sh
492 ## Lint: list of targets above
493 .PHONY: lint-docs
494 lint-docs: lint-docs-fsck-msgids
495 lint-docs: lint-docs-gitlink
496 lint-docs: lint-docs-man-end-blurb
497 lint-docs: lint-docs-man-section-order
498 lint-docs: lint-docs-manpages
500 ifeq ($(wildcard po/Makefile),po/Makefile)
501 doc-l10n install-l10n::
502 $(MAKE) -C po $@
503 endif
505 .PHONY: FORCE