From 1cd2d3522fa1cac622d361797f10ff757b8a40bf Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Fri, 28 Aug 2026 03:04:20 +0300
Subject: [PATCH 58/58] Meson: Avoid repetitive man page install dir
 construction

See RM #2173

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 4a2f1b7d28..c300aa45af 100644
--- a/meson.build
+++ b/meson.build
@@ -1159,6 +1159,8 @@ man_links = [
   'freeciv-mp-cli'
   ]
 
+man_dir = join_paths(get_option('mandir'), 'man6')
+
 foreach manp : man_pages
   man_conf_data = configuration_data()
   man_conf_data.set('HOMEPAGE_URL', '"' + homepage_url + '"')
@@ -1168,13 +1170,13 @@ foreach manp : man_pages
   configure_file(input : 'doc/man/' + manp + '.6.in',
                  output : manp + '.6',
                  configuration : man_conf_data,
-                 install_dir: join_paths(get_option('mandir'), 'man6'))
+                 install_dir: man_dir)
 endforeach
 
 foreach manp : man_links
   install_data(
     join_paths('doc/man/', manp + '.6'),
-    install_dir : join_paths(get_option('mandir'), 'man6')
+    install_dir : man_dir
     )
 endforeach
 
-- 
2.53.0

