From: Christian Hesse Date: Wed, 12 Mar 2025 13:06:14 +0000 (+0100) Subject: meson: bring hexdump in line with others X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecd8d1e56ca5aeef0b47f3a2b855b83e121359b8;p=thirdparty%2Futil-linux.git meson: bring hexdump in line with others Before it was different, and the executable was not installed. --- diff --git a/meson.build b/meson.build index fba31406c..d30218074 100644 --- a/meson.build +++ b/meson.build @@ -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']