aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-07-09 08:23:38 +0200
committerJunio C Hamano <gitster@pobox.com>2025-07-09 08:19:32 -0700
commite69b3b367fb6217b8d43ef8348dff82aabbba5e2 (patch)
tree99169f18800d1098314987d804d8c5e057354adc
parentmeson: improve summary of auto-detected features (diff)
downloadgit-e69b3b367fb6217b8d43ef8348dff82aabbba5e2.tar.gz
git-e69b3b367fb6217b8d43ef8348dff82aabbba5e2.zip
meson: clean up unnecessary variables
The `manpage_target` variable isn't used at all, and the `manpage_path` variable is only used in a single location. Remove the former variable and inline the latter. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/meson.build5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/meson.build b/Documentation/meson.build
index 1433acfd31..e64bf1b46e 100644
--- a/Documentation/meson.build
+++ b/Documentation/meson.build
@@ -375,8 +375,7 @@ foreach manpage, category : manpages
output: fs.stem(manpage) + '.xml',
)
- manpage_path = fs.stem(manpage) + '.' + category.to_string()
- manpage_target = custom_target(
+ custom_target(
command: [
xmlto,
'-m', '@INPUT0@',
@@ -392,7 +391,7 @@ foreach manpage, category : manpages
'manpage-normal.xsl',
'manpage-bold-literal.xsl',
],
- output: manpage_path,
+ output: fs.stem(manpage) + '.' + category.to_string(),
install: true,
install_dir: get_option('mandir') / 'man' + category.to_string(),
)