]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: don't install getopt examples if disabled
authorRosen Penev <rosenp@gmail.com>
Sun, 22 Sep 2024 18:54:46 +0000 (11:54 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 22 Sep 2024 18:54:46 +0000 (11:54 -0700)
No need to do so.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
misc-utils/meson.build

index 2955408a762d42c6f27c881e4fc4b09917793370..474db30f569dbc92666317675f8ad13db2b4da6e 100644 (file)
@@ -147,11 +147,13 @@ getopt_sources = files(
   'getopt.c',
 )
 
-install_data(
-  'getopt-example.bash',
-  'getopt-example.tcsh',
-  install_dir : docdir,
-  install_mode: 'rwxr-xr-x')
+if not get_option('build-getopt').disabled()
+  install_data(
+    'getopt-example.bash',
+    'getopt-example.tcsh',
+    install_dir : docdir,
+    install_mode: 'rwxr-xr-x')
+endif
 
 exch_sources = files(
   'exch.c',