aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/subtree/meson.build
diff options
context:
space:
mode:
authorD. Ben Knoble <ben.knoble+github@gmail.com>2025-11-04 08:58:29 -0500
committerJunio C Hamano <gitster@pobox.com>2025-11-06 09:58:56 -0800
commitd63417e3ad67e5857cd52f9177fe39719d6ac84a (patch)
tree8dd2804c92ca6a0b780f68c76ad88179392de085 /contrib/subtree/meson.build
parent7f278e958afbf9b7e0727631b4c26dcfa1c63d6e (diff)
downloadgit-d63417e3ad67e5857cd52f9177fe39719d6ac84a.tar.gz
meson: make GIT_HTML_PATH configurable
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>
Diffstat (limited to 'contrib/subtree/meson.build')
-rw-r--r--contrib/subtree/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/subtree/meson.build b/contrib/subtree/meson.build
index 46cdbcc30c..161435abeb 100644
--- a/contrib/subtree/meson.build
+++ b/contrib/subtree/meson.build
@@ -68,6 +68,6 @@ if get_option('docs').contains('html')
input: 'git-subtree.adoc',
output: 'git-subtree.html',
install: true,
- install_dir: get_option('datadir') / 'doc/git-doc',
+ install_dir: htmldir,
)
endif