mirror of
https://github.com/git/git.git
synced 2026-01-11 05:13:13 +09:00
Makefile-based builds can configure Git's internal HTML_PATH by defining
htmldir, which is useful for packagers that put documentation in
different locations. Gentoo, for example, uses version-suffixed
directories like ${prefix}/share/doc/git-2.51 and puts the HTML
documentation in an 'html' subdirectory of the same.
Propagate the same configuration knob to Meson-based builds so that
"git --html-path" on such systems can be configured to output the
correct directory.
Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
56 lines
1.2 KiB
Meson
56 lines
1.2 KiB
Meson
custom_target(
|
|
input: 'git-contacts',
|
|
output: 'git-contacts',
|
|
command: generate_perl_command,
|
|
depends: [git_version_file],
|
|
install: true,
|
|
install_dir: get_option('libexecdir') / 'git-core',
|
|
)
|
|
|
|
if get_option('docs').contains('man')
|
|
contacts_xml = custom_target(
|
|
command: asciidoc_common_options + [
|
|
'--backend=' + asciidoc_docbook,
|
|
'--doctype=manpage',
|
|
'--out-file=@OUTPUT@',
|
|
'@INPUT@',
|
|
],
|
|
depends: documentation_deps,
|
|
input: 'git-contacts.adoc',
|
|
output: 'git-contacts.xml',
|
|
)
|
|
|
|
doc_targets += custom_target(
|
|
command: [
|
|
xmlto,
|
|
'-m', '@INPUT@',
|
|
'man',
|
|
contacts_xml,
|
|
'-o',
|
|
meson.current_build_dir(),
|
|
] + xmlto_extra,
|
|
input: [
|
|
'../../Documentation/manpage-normal.xsl',
|
|
],
|
|
output: 'git-contacts.1',
|
|
install: true,
|
|
install_dir: get_option('mandir') / 'man1',
|
|
)
|
|
endif
|
|
|
|
if get_option('docs').contains('html')
|
|
doc_targets += custom_target(
|
|
command: asciidoc_common_options + [
|
|
'--backend=' + asciidoc_html,
|
|
'--doctype=manpage',
|
|
'--out-file=@OUTPUT@',
|
|
'@INPUT@',
|
|
],
|
|
depends: documentation_deps,
|
|
input: 'git-contacts.adoc',
|
|
output: 'git-contacts.html',
|
|
install: true,
|
|
install_dir: htmldir,
|
|
)
|
|
endif
|