]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: bring hexdump in line with others
authorChristian Hesse <mail@eworm.de>
Wed, 12 Mar 2025 13:06:14 +0000 (14:06 +0100)
committerChristian Hesse <mail@eworm.de>
Wed, 12 Mar 2025 13:15:10 +0000 (14:15 +0100)
Before it was different, and the executable was not installed.

meson.build

index fba31406c2030f2e557459351e9e8b23398cf5b4..d3021807483d07cde8a3fa0fb0341f0cf25e5021 100644 (file)
@@ -1422,18 +1422,17 @@ if opt and not is_disabler(exe)
   bashcompletions += ['more']
 endif
 
-if not get_option('build-hexdump').disabled()
-  exe = executable(
-    'hexdump',
-    hexdump_sources,
-    include_directories : includes,
-    link_with : [lib_common,
-                 lib_tcolors],
-    install_dir : usrbin_exec_dir)
-else
-  exe = disabler()
-endif
-if not is_disabler(exe)
+opt = not get_option('build-hexdump').disabled()
+exe = executable(
+  'hexdump',
+  hexdump_sources,
+  include_directories : includes,
+  link_with : [lib_common,
+               lib_tcolors],
+  install_dir : usrbin_exec_dir,
+  install : opt,
+  build_by_default : opt)
+if opt and not is_disabler(exe)
     exes += exe
     manadocs += hexdump_manadocs
     bashcompletions += ['hexdump']