From: Rosen Penev Date: Sun, 22 Sep 2024 18:54:46 +0000 (-0700) Subject: meson: don't install getopt examples if disabled X-Git-Tag: v2.42-start~205 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2213bdc646f65b52dd511d0c785d7de5cfa683aa;p=thirdparty%2Futil-linux.git meson: don't install getopt examples if disabled No need to do so. Signed-off-by: Rosen Penev --- diff --git a/misc-utils/meson.build b/misc-utils/meson.build index 2955408a7..474db30f5 100644 --- a/misc-utils/meson.build +++ b/misc-utils/meson.build @@ -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',