]> git.ipfire.org Git - thirdparty/git.git/commitdiff
meson: clean up unnecessary variables
authorPatrick Steinhardt <ps@pks.im>
Wed, 9 Jul 2025 06:23:38 +0000 (08:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Jul 2025 15:19:32 +0000 (08:19 -0700)
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>
Documentation/meson.build

index 1433acfd310e7b1567bd3d9180467bc5fee58511..e64bf1b46ebfee0b11e1375869cfa622e0ee14d3 100644 (file)
@@ -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(),
     )