meson: generate articles
While the Meson build system already knows to generate man pages and our user manual, it does not yet generate the random assortment of articles that we have. Plug this gap. 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
8922506cb2
commit
bcf7edee09
@ -413,4 +413,40 @@ if get_option('docs').contains('html')
|
||||
install: true,
|
||||
install_dir: get_option('datadir') / 'doc/git-doc',
|
||||
)
|
||||
|
||||
articles = [
|
||||
'DecisionMaking.txt',
|
||||
'MyFirstContribution.txt',
|
||||
'MyFirstObjectWalk.txt',
|
||||
'ReviewingGuidelines.txt',
|
||||
'SubmittingPatches',
|
||||
'ToolsForGit.txt',
|
||||
'git-bisect-lk2009.txt',
|
||||
'git-tools.txt',
|
||||
]
|
||||
|
||||
foreach article : articles
|
||||
custom_target(
|
||||
command: asciidoc_common_options + [
|
||||
'--backend=' + asciidoc_html,
|
||||
'--out-file=@OUTPUT@',
|
||||
'@INPUT@',
|
||||
],
|
||||
input: article,
|
||||
output: fs.stem(article) + '.html',
|
||||
depends: documentation_deps,
|
||||
install: true,
|
||||
install_dir: get_option('datadir') / 'doc/git-doc',
|
||||
)
|
||||
endforeach
|
||||
|
||||
asciidoc_html_options = asciidoc_common_options + [
|
||||
'--backend=' + asciidoc_html,
|
||||
'--out-file=@OUTPUT@',
|
||||
'--attribute', 'git-relative-html-prefix=../',
|
||||
'@INPUT@',
|
||||
]
|
||||
|
||||
subdir('howto')
|
||||
subdir('technical')
|
||||
endif
|
||||
|
Reference in New Issue
Block a user