mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
meson: introduce a "docs" alias to compile documentation only
Meson does not currently provide a target to compile documentation, only. Instead, users needs to compile the whole project, which may be way more than they really intend to do. Introduce a new "docs" alias to plug this gap. This alias can be invoked e.g. with `meson compile docs`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
c44beea485
commit
197f0d0f39
@@ -20,7 +20,7 @@ if get_option('docs').contains('man')
|
||||
output: 'git-contacts.xml',
|
||||
)
|
||||
|
||||
custom_target(
|
||||
doc_targets += custom_target(
|
||||
command: [
|
||||
xmlto,
|
||||
'-m', '@INPUT@',
|
||||
@@ -39,7 +39,7 @@ if get_option('docs').contains('man')
|
||||
endif
|
||||
|
||||
if get_option('docs').contains('html')
|
||||
custom_target(
|
||||
doc_targets += custom_target(
|
||||
command: asciidoc_common_options + [
|
||||
'--backend=' + asciidoc_html,
|
||||
'--doctype=manpage',
|
||||
|
||||
Reference in New Issue
Block a user