1 # Guard against environment variables
12 -include GIT-EXCLUDED-PROGRAMS
14 MAN1_TXT
+= $(filter-out \
15 $(patsubst %,%.txt
,$(EXCLUDED_PROGRAMS
)) \
16 $(addsuffix .txt
, $(ARTICLES
) $(SP_ARTICLES
)), \
17 $(wildcard git-
*.txt
))
20 MAN1_TXT
+= gitweb.txt
22 # man5 / man7 guides (note: new guides should also be added to command-list.txt)
23 MAN5_TXT
+= gitattributes.txt
24 MAN5_TXT
+= githooks.txt
25 MAN5_TXT
+= gitignore.txt
26 MAN5_TXT
+= gitmailmap.txt
27 MAN5_TXT
+= gitmodules.txt
28 MAN5_TXT
+= gitrepository-layout.txt
29 MAN5_TXT
+= gitweb.conf.txt
31 MAN7_TXT
+= gitcli.txt
32 MAN7_TXT
+= gitcore-tutorial.txt
33 MAN7_TXT
+= gitcredentials.txt
34 MAN7_TXT
+= gitcvs-migration.txt
35 MAN7_TXT
+= gitdiffcore.txt
36 MAN7_TXT
+= giteveryday.txt
37 MAN7_TXT
+= gitfaq.txt
38 MAN7_TXT
+= gitglossary.txt
39 MAN7_TXT
+= gitnamespaces.txt
40 MAN7_TXT
+= gitremote-helpers.txt
41 MAN7_TXT
+= gitrevisions.txt
42 MAN7_TXT
+= gitsubmodules.txt
43 MAN7_TXT
+= gittutorial-2.txt
44 MAN7_TXT
+= gittutorial.txt
45 MAN7_TXT
+= gitworkflows.txt
47 HOWTO_TXT
+= $(wildcard howto
/*.txt
)
49 DOC_DEP_TXT
+= $(wildcard *.txt
)
50 DOC_DEP_TXT
+= $(wildcard config
/*.txt
)
53 MAN_TXT
= $(filter $(MAN_FILTER
),$(MAN1_TXT
) $(MAN5_TXT
) $(MAN7_TXT
))
55 MAN_TXT
= $(MAN1_TXT
) $(MAN5_TXT
) $(MAN7_TXT
)
56 MAN_FILTER
= $(MAN_TXT
)
59 MAN_XML
= $(patsubst %.txt
,%.xml
,$(MAN_TXT
))
60 MAN_HTML
= $(patsubst %.txt
,%.html
,$(MAN_TXT
))
63 OBSOLETE_HTML
+= everyday.html
64 OBSOLETE_HTML
+= git-remote-helpers.html
66 ARTICLES
+= howto-index
68 ARTICLES
+= git-bisect-lk2009
69 # with their own formatting rules.
70 SP_ARTICLES
+= user-manual
71 SP_ARTICLES
+= howto
/new-command
72 SP_ARTICLES
+= howto
/revert-branch-rebase
73 SP_ARTICLES
+= howto
/using-merge-subtree
74 SP_ARTICLES
+= howto
/using-signed-tag-in-pull-request
75 SP_ARTICLES
+= howto
/use-git-daemon
76 SP_ARTICLES
+= howto
/update-hook-example
77 SP_ARTICLES
+= howto
/setup-git-server-over-http
78 SP_ARTICLES
+= howto
/separating-topic-branches
79 SP_ARTICLES
+= howto
/revert-a-faulty-merge
80 SP_ARTICLES
+= howto
/recover-corrupted-blob-object
81 SP_ARTICLES
+= howto
/recover-corrupted-object-harder
82 SP_ARTICLES
+= howto
/rebuild-from-update-hook
83 SP_ARTICLES
+= howto
/rebase-from-internal-branch
84 SP_ARTICLES
+= howto
/keep-canonical-history-correct
85 SP_ARTICLES
+= howto
/maintain-git
86 SP_ARTICLES
+= howto
/coordinate-embargoed-releases
87 API_DOCS
= $(patsubst %.txt
,%,$(filter-out technical
/api-index-skel.txt technical
/api-index.txt
, $(wildcard technical
/api-
*.txt
)))
88 SP_ARTICLES
+= $(API_DOCS
)
90 TECH_DOCS
+= MyFirstContribution
91 TECH_DOCS
+= MyFirstObjectWalk
92 TECH_DOCS
+= SubmittingPatches
93 TECH_DOCS
+= technical
/bundle-format
94 TECH_DOCS
+= technical
/hash-function-transition
95 TECH_DOCS
+= technical
/http-protocol
96 TECH_DOCS
+= technical
/index-format
97 TECH_DOCS
+= technical
/long-running-process-protocol
98 TECH_DOCS
+= technical
/multi-pack-index
99 TECH_DOCS
+= technical
/pack-format
100 TECH_DOCS
+= technical
/pack-heuristics
101 TECH_DOCS
+= technical
/pack-protocol
102 TECH_DOCS
+= technical
/parallel-checkout
103 TECH_DOCS
+= technical
/partial-clone
104 TECH_DOCS
+= technical
/protocol-capabilities
105 TECH_DOCS
+= technical
/protocol-common
106 TECH_DOCS
+= technical
/protocol-v2
107 TECH_DOCS
+= technical
/racy-git
108 TECH_DOCS
+= technical
/reftable
109 TECH_DOCS
+= technical
/send-pack-pipeline
110 TECH_DOCS
+= technical
/shallow
111 TECH_DOCS
+= technical
/signature-format
112 TECH_DOCS
+= technical
/trivial-merge
113 SP_ARTICLES
+= $(TECH_DOCS
)
114 SP_ARTICLES
+= technical
/api-index
116 ARTICLES_HTML
+= $(patsubst %,%.html
,$(ARTICLES
) $(SP_ARTICLES
))
117 HTML_FILTER ?
= $(ARTICLES_HTML
) $(OBSOLETE_HTML
)
118 DOC_HTML
= $(MAN_HTML
) $(filter $(HTML_FILTER
),$(ARTICLES_HTML
) $(OBSOLETE_HTML
))
120 DOC_MAN1
= $(patsubst %.txt
,%.1,$(filter $(MAN_FILTER
),$(MAN1_TXT
)))
121 DOC_MAN5
= $(patsubst %.txt
,%.5,$(filter $(MAN_FILTER
),$(MAN5_TXT
)))
122 DOC_MAN7
= $(patsubst %.txt
,%.7,$(filter $(MAN_FILTER
),$(MAN7_TXT
)))
125 bindir ?
= $(prefix)/bin
126 htmldir ?
= $(prefix)/share
/doc
/git-doc
127 infodir ?
= $(prefix)/share
/info
128 pdfdir ?
= $(prefix)/share
/doc
/git-doc
129 mandir ?
= $(prefix)/share
/man
130 man1dir = $(mandir)/man1
131 man5dir = $(mandir)/man5
132 man7dir = $(mandir)/man7
137 ASCIIDOC_HTML
= xhtml11
138 ASCIIDOC_DOCBOOK
= docbook
139 ASCIIDOC_CONF
= -f asciidoc.conf
140 ASCIIDOC_COMMON
= $(ASCIIDOC
) $(ASCIIDOC_EXTRA
) $(ASCIIDOC_CONF
) \
141 -amanversion
=$(GIT_VERSION
) \
142 -amanmanual
='Git Manual' -amansource
='Git'
143 ASCIIDOC_DEPS
= asciidoc.conf GIT-ASCIIDOCFLAGS
144 TXT_TO_HTML
= $(ASCIIDOC_COMMON
) -b
$(ASCIIDOC_HTML
)
145 TXT_TO_XML
= $(ASCIIDOC_COMMON
) -b
$(ASCIIDOC_DOCBOOK
)
146 MANPAGE_XSL
= manpage-normal.xsl
151 MAN_REPO
= ..
/..
/git-manpages
152 HTML_REPO
= ..
/..
/git-htmldocs
155 INSTALL_INFO
= install-info
156 DOCBOOK2X_TEXI
= docbook2x-texi
158 ASCIIDOC_DBLATEX_DIR
= /etc
/asciidoc
/dblatex
159 DBLATEX_COMMON
= -p
$(ASCIIDOC_DBLATEX_DIR
)/asciidoc-dblatex.xsl
-s
$(ASCIIDOC_DBLATEX_DIR
)/asciidoc-dblatex.sty
161 PERL_PATH
= /usr
/bin
/perl
164 -include ..
/config.mak.autogen
165 -include ..
/config.mak
167 ifndef NO_MAN_BOLD_LITERAL
168 XMLTO_EXTRA
+= -m manpage-bold-literal.xsl
171 # Newer DocBook stylesheet emits warning cruft in the output when
172 # this is not set, and if set it shows an absolute link. Older
173 # stylesheets simply ignore this parameter.
175 # Distros may want to use MAN_BASE_URL=file:///path/to/git/docs/
178 MAN_BASE_URL
= file
://$(htmldir
)/
180 XMLTO_EXTRA
+= -m manpage-base-url.xsl
182 # If your target system uses GNU groff, it may try to render
183 # apostrophes as a "pretty" apostrophe using unicode. This breaks
184 # cut&paste, so you should set GNU_ROFF to force them to be ASCII
185 # apostrophes. Unfortunately does not work with non-GNU roff.
187 XMLTO_EXTRA
+= -m manpage-quote-apos.xsl
190 ifdef USE_ASCIIDOCTOR
191 ASCIIDOC
= asciidoctor
193 ASCIIDOC_HTML
= xhtml5
194 ASCIIDOC_DOCBOOK
= docbook5
195 ASCIIDOC_EXTRA
+= -acompat-mode
-atabsize
=8
196 ASCIIDOC_EXTRA
+= -I.
-rasciidoctor-extensions
197 ASCIIDOC_EXTRA
+= -alitdd
='&\#x2d;&\#x2d;'
198 ASCIIDOC_DEPS
= asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
200 XMLTO_EXTRA
+= --skip-validation
201 XMLTO_EXTRA
+= -x manpage.xsl
204 SHELL_PATH ?
= $(SHELL
)
206 SHELL_PATH_SQ
= $(subst ','\'',$(SHELL_PATH))
209 DEFAULT_PAGER_SQ = $(subst ','\'',$(DEFAULT_PAGER
))
210 ASCIIDOC_EXTRA
+= -a
'git-default-pager=$(DEFAULT_PAGER_SQ)'
214 DEFAULT_EDITOR_SQ
= $(subst ','\'',$(DEFAULT_EDITOR))
215 ASCIIDOC_EXTRA += -a 'git-default-editor
=$(DEFAULT_EDITOR_SQ
)'
218 QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
221 ifneq ($(findstring $(MAKEFLAGS),w),w)
222 PRINT_DIR = --no-print-directory
227 ifneq ($(findstring $(MAKEFLAGS),s),s)
230 QUIET_ASCIIDOC = @echo ' ' ASCIIDOC $@;
231 QUIET_XMLTO = @echo ' ' XMLTO $@;
232 QUIET_DB2TEXI = @echo ' ' DB2TEXI $@;
233 QUIET_MAKEINFO = @echo ' ' MAKEINFO $@;
234 QUIET_DBLATEX = @echo ' ' DBLATEX $@;
235 QUIET_XSLTPROC = @echo ' ' XSLTPROC $@;
236 QUIET_GEN = @echo ' ' GEN $@;
237 QUIET_STDERR = 2> /dev/null
238 QUIET_SUBDIR0 = +@subdir=
239 QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
240 $(MAKE) $(PRINT_DIR) -C $$subdir
242 QUIET_LINT_GITLINK = @echo ' ' LINT GITLINK $<;
243 QUIET_LINT_MANSEC = @echo ' ' LINT MAN SEC $<;
244 QUIET_LINT_MANEND = @echo ' ' LINT MAN END $<;
259 info: git.info gitman.info
266 $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
267 $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir)
268 $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir)
269 $(INSTALL) -m 644 $(DOC_MAN1) $(DESTDIR)$(man1dir)
270 $(INSTALL) -m 644 $(DOC_MAN5) $(DESTDIR)$(man5dir)
271 $(INSTALL) -m 644 $(DOC_MAN7) $(DESTDIR)$(man7dir)
274 $(INSTALL) -d -m 755 $(DESTDIR)$(infodir)
275 $(INSTALL) -m 644 git.info gitman.info $(DESTDIR)$(infodir)
276 if test -r $(DESTDIR)$(infodir)/dir; then \
277 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) git.info ;\
278 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) gitman.info ;\
280 echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \
284 $(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir)
285 $(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir)
288 '$(SHELL_PATH_SQ
)' ./install-webdoc.sh $(DESTDIR)$(htmldir)
290 ../GIT-VERSION-FILE: FORCE
291 $(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) GIT-VERSION-FILE
293 ifneq ($(filter-out lint-docs clean,$(MAKECMDGOALS)),)
294 -include ../GIT-VERSION-FILE
298 # Determine "include::" file references in asciidoc files.
301 mergetools-list.made $(mergetools_txt) \
302 cmd-list.made $(cmds_txt)
304 doc.dep : $(docdep_prereqs) $(DOC_DEP_TXT) build-docdep.perl
305 $(QUIET_GEN)$(PERL_PATH) ./build-docdep.perl >$@ $(QUIET_STDERR)
307 ifneq ($(MAKECMDGOALS),clean)
311 cmds_txt = cmds-ancillaryinterrogators.txt \
312 cmds-ancillarymanipulators.txt \
313 cmds-mainporcelain.txt \
314 cmds-plumbinginterrogators.txt \
315 cmds-plumbingmanipulators.txt \
316 cmds-synchingrepositories.txt \
317 cmds-synchelpers.txt \
319 cmds-purehelpers.txt \
320 cmds-foreignscminterface.txt
322 $(cmds_txt): cmd-list.made
324 cmd-list.made: cmd-list.perl ../command-list.txt $(MAN1_TXT)
325 $(QUIET_GEN)$(PERL_PATH) ./cmd-list.perl ../command-list.txt $(cmds_txt) $(QUIET_STDERR) && \
328 mergetools_txt = mergetools-diff.txt mergetools-merge.txt
330 $(mergetools_txt): mergetools-list.made
332 mergetools-list.made: ../git-mergetool--lib.sh $(wildcard ../mergetools/*)
334 $(SHELL_PATH) -c 'MERGE_TOOLS_DIR
=..
/mergetools
&& \
335 . ..
/git-mergetool--lib.sh
&& \
336 show_tool_names can_diff
"* " ||
:' >mergetools-diff.txt && \
337 $(SHELL_PATH) -c 'MERGE_TOOLS_DIR
=..
/mergetools
&& \
338 . ..
/git-mergetool--lib.sh
&& \
339 show_tool_names can_merge
"* " ||
:' >mergetools-merge.txt && \
342 TRACK_ASCIIDOCFLAGS = $(subst ','\'',$(ASCIIDOC_COMMON
):$(ASCIIDOC_HTML
):$(ASCIIDOC_DOCBOOK
))
344 GIT-ASCIIDOCFLAGS
: FORCE
345 @FLAGS
='$(TRACK_ASCIIDOCFLAGS)'; \
346 if
test x
"$$FLAGS" != x
"`cat GIT-ASCIIDOCFLAGS 2>/dev/null`" ; then \
347 echo
>&2 " * new asciidoc flags"; \
348 echo
"$$FLAGS" >GIT-ASCIIDOCFLAGS
; \
353 $(RM
) *.xml
*.xml
+ *.html
*.html
+ *.1 *.5 *.7
354 $(RM
) *.texi
*.texi
+ *.texi
++ git.
info gitman.
info
356 $(RM
) howto-index.txt howto
/*.html doc.dep
357 $(RM
) technical
/*.html technical
/api-index.txt
358 $(RM
) SubmittingPatches.txt
359 $(RM
) $(cmds_txt
) $(mergetools_txt
) *.made
360 $(RM
) manpage-base-url.xsl
361 $(RM
) GIT-ASCIIDOCFLAGS
363 $(MAN_HTML
): %.html
: %.txt
$(ASCIIDOC_DEPS
)
364 $(QUIET_ASCIIDOC
)$(TXT_TO_HTML
) -d manpage
-o
$@
$<
366 $(OBSOLETE_HTML
): %.html
: %.txto
$(ASCIIDOC_DEPS
)
367 $(QUIET_ASCIIDOC
)$(TXT_TO_HTML
) -o
$@
$<
369 manpage-base-url.xsl
: manpage-base-url.xsl.in
370 $(QUIET_GEN
)sed
"s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
372 %.1 %.5 %.7 : %.xml manpage-base-url.xsl
$(wildcard manpage
*.xsl
)
373 $(QUIET_XMLTO
)$(XMLTO
) -m
$(MANPAGE_XSL
) $(XMLTO_EXTRA
) man
$<
375 %.xml
: %.txt
$(ASCIIDOC_DEPS
)
376 $(QUIET_ASCIIDOC
)$(TXT_TO_XML
) -d manpage
-o
$@
$<
378 user-manual.xml
: user-manual.txt user-manual.conf asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
379 $(QUIET_ASCIIDOC
)$(TXT_TO_XML
) -d book
-o
$@
$<
381 technical
/api-index.txt
: technical
/api-index-skel.txt \
382 technical
/api-index.sh
$(patsubst %,%.txt
,$(API_DOCS
))
383 $(QUIET_GEN
)cd technical
&& '$(SHELL_PATH_SQ)' .
/api-index.sh
385 technical
/%.html
: ASCIIDOC_EXTRA
+= -a git-relative-html-prefix
=..
/
386 $(patsubst %,%.html
,$(API_DOCS
) technical
/api-index
$(TECH_DOCS
)): %.html
: %.txt \
387 asciidoc.conf GIT-ASCIIDOCFLAGS
388 $(QUIET_ASCIIDOC
)$(TXT_TO_HTML
) $*.txt
390 SubmittingPatches.txt
: SubmittingPatches
391 $(QUIET_GEN
) cp
$< $@
395 XSLTOPTS
+= --xinclude
396 XSLTOPTS
+= --stringparam html.stylesheet docbook-xsl.css
397 XSLTOPTS
+= --param generate.consistent.ids
1
399 user-manual.html
: user-manual.xml
$(XSLT
)
400 $(QUIET_XSLTPROC
)xsltproc
$(XSLTOPTS
) -o
$@
$(XSLT
) $<
402 git.
info: user-manual.texi
403 $(QUIET_MAKEINFO
)$(MAKEINFO
) --no-split
-o
$@ user-manual.texi
405 user-manual.texi
: user-manual.xml
406 $(QUIET_DB2TEXI
)$(DOCBOOK2X_TEXI
) user-manual.xml
--encoding
=UTF-8
--to-stdout
>$@
+ && \
407 $(PERL_PATH
) fix-texi.perl
<$@
+ >$@
&& \
410 user-manual.pdf
: user-manual.xml
411 $(QUIET_DBLATEX
)$(DBLATEX
) -o
$@
$(DBLATEX_COMMON
) $<
413 gitman.texi
: $(MAN_XML
) cat-texi.perl texi.xsl
415 ($(foreach xml
,$(sort $(MAN_XML
)),xsltproc
-o
$(xml
)+ texi.xsl
$(xml
) && \
416 $(DOCBOOK2X_TEXI
) --encoding
=UTF-8
--to-stdout
$(xml
)+ && \
417 $(RM
) $(xml
)+ &&) true
) > $@
+ && \
418 $(PERL_PATH
) cat-texi.perl
$@
<$@
+ >$@
&& \
421 gitman.
info: gitman.texi
422 $(QUIET_MAKEINFO
)$(MAKEINFO
) --no-split
--no-validate
$*.texi
424 $(patsubst %.txt
,%.texi
,$(MAN_TXT
)): %.texi
: %.xml
425 $(QUIET_DB2TEXI
)$(DOCBOOK2X_TEXI
) --to-stdout
$*.xml
>$@
427 howto-index.txt
: howto-index.sh
$(HOWTO_TXT
)
428 $(QUIET_GEN
)'$(SHELL_PATH_SQ)' .
/howto-index.sh
$(sort $(HOWTO_TXT
)) >$@
430 $(patsubst %,%.html
,$(ARTICLES
)) : %.html
: %.txt
431 $(QUIET_ASCIIDOC
)$(TXT_TO_HTML
) $*.txt
433 WEBDOC_DEST
= /pub
/software
/scm
/git
/docs
435 howto
/%.html
: ASCIIDOC_EXTRA
+= -a git-relative-html-prefix
=..
/
436 $(patsubst %.txt
,%.html
,$(HOWTO_TXT
)): %.html
: %.txt GIT-ASCIIDOCFLAGS
438 sed
-e
'1,/^$$/d' $< | \
441 install-webdoc
: html
442 '$(SHELL_PATH_SQ)' .
/install-webdoc.sh
$(WEBDOC_DEST
)
444 # You must have a clone of 'git-htmldocs' and 'git-manpages' repositories
445 # next to the 'git' repository itself for the following to work.
447 quick-install
: quick-install-man
450 @if
test ! -d
$(MAN_REPO
); \
451 then echo
"git-manpages repository must exist at $(MAN_REPO)"; exit
1; fi
453 quick-install-man
: require-manrepo
454 '$(SHELL_PATH_SQ)' .
/install-doc-quick.sh
$(MAN_REPO
) $(DESTDIR
)$(mandir) $(GIT_MAN_REF
)
457 @if
test ! -d
$(HTML_REPO
); \
458 then echo
"git-htmldocs repository must exist at $(HTML_REPO)"; exit
1; fi
460 quick-install-html
: require-htmlrepo
461 '$(SHELL_PATH_SQ)' .
/install-doc-quick.sh
$(HTML_REPO
) $(DESTDIR
)$(htmldir
) $(GIT_MAN_REF
)
464 @for i in
$(MAN1_TXT
); do echo
$$i; done
469 .build
/lint-docs
: | .build
473 .build
/lint-docs
/gitlink
: | .build
/lint-docs
475 .build
/lint-docs
/gitlink
/howto
: | .build
/lint-docs
/gitlink
477 .build
/lint-docs
/gitlink
/config
: | .build
/lint-docs
/gitlink
479 LINT_DOCS_GITLINK
= $(patsubst %.txt
,.build
/lint-docs
/gitlink
/%.ok
,$(HOWTO_TXT
) $(DOC_DEP_TXT
))
480 $(LINT_DOCS_GITLINK
): | .build
/lint-docs
/gitlink
481 $(LINT_DOCS_GITLINK
): | .build
/lint-docs
/gitlink
/howto
482 $(LINT_DOCS_GITLINK
): | .build
/lint-docs
/gitlink
/config
483 $(LINT_DOCS_GITLINK
): lint-gitlink.perl
484 $(LINT_DOCS_GITLINK
): .build
/lint-docs
/gitlink
/%.ok
: %.txt
485 $(QUIET_LINT_GITLINK
)$(PERL_PATH
) lint-gitlink.perl \
487 $(HOWTO_TXT
) $(DOC_DEP_TXT
) \
488 --section
=1 $(MAN1_TXT
) \
489 --section
=5 $(MAN5_TXT
) \
490 --section
=7 $(MAN7_TXT
) >$@
491 .PHONY
: lint-docs-gitlink
492 lint-docs-gitlink
: $(LINT_DOCS_GITLINK
)
494 ## Lint: man-end-blurb
495 .build
/lint-docs
/man-end-blurb
: | .build
/lint-docs
497 LINT_DOCS_MAN_END_BLURB
= $(patsubst %.txt
,.build
/lint-docs
/man-end-blurb
/%.ok
,$(MAN_TXT
))
498 $(LINT_DOCS_MAN_END_BLURB
): | .build
/lint-docs
/man-end-blurb
499 $(LINT_DOCS_MAN_END_BLURB
): lint-man-end-blurb.perl
500 $(LINT_DOCS_MAN_END_BLURB
): .build
/lint-docs
/man-end-blurb
/%.ok
: %.txt
501 $(QUIET_LINT_MANEND
)$(PERL_PATH
) lint-man-end-blurb.perl
$< >$@
502 .PHONY
: lint-docs-man-end-blurb
503 lint-docs-man-end-blurb
: $(LINT_DOCS_MAN_END_BLURB
)
505 ## Lint: man-section-order
506 .build
/lint-docs
/man-section-order
: | .build
/lint-docs
508 LINT_DOCS_MAN_SECTION_ORDER
= $(patsubst %.txt
,.build
/lint-docs
/man-section-order
/%.ok
,$(MAN_TXT
))
509 $(LINT_DOCS_MAN_SECTION_ORDER
): | .build
/lint-docs
/man-section-order
510 $(LINT_DOCS_MAN_SECTION_ORDER
): lint-man-section-order.perl
511 $(LINT_DOCS_MAN_SECTION_ORDER
): .build
/lint-docs
/man-section-order
/%.ok
: %.txt
512 $(QUIET_LINT_MANSEC
)$(PERL_PATH
) lint-man-section-order.perl
$< >$@
513 .PHONY
: lint-docs-man-section-order
514 lint-docs-man-section-order
: $(LINT_DOCS_MAN_SECTION_ORDER
)
516 ## Lint: list of targets above
518 lint-docs
: lint-docs-gitlink
519 lint-docs
: lint-docs-man-end-blurb
520 lint-docs
: lint-docs-man-section-order
522 ifeq ($(wildcard po
/Makefile
),po
/Makefile
)
523 doc-l10n install-l10n
::
527 # Delete the target file on error