]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: add checking build-cal
authorAlexander Shursha <kekek2@ya.ru>
Thu, 28 Nov 2024 09:01:12 +0000 (12:01 +0300)
committerАлександр Шурша <avshur10@mts.ru>
Fri, 6 Dec 2024 08:36:41 +0000 (11:36 +0300)
Sponsored by: Future Crew, LLC

meson.build

index fc2a4588dd2057e299c2e05026ef05d7b25480b1..14ae9b2235450571dd9a31fe9542c4a4732cbf21 100644 (file)
@@ -2762,6 +2762,7 @@ if opt and not is_disabler(exe)
   manadocs += ['login-utils/sulogin.8.adoc']
 endif
 
+opt = not get_option('build-cal').disabled()
 exe = executable(
   'cal',
   cal_sources,
@@ -2770,10 +2771,13 @@ exe = executable(
                lib_tcolors],
   dependencies : [curses_libs],
   install_dir : usrbin_exec_dir,
-  install : true)
-exes += exe
-manadocs += ['misc-utils/cal.1.adoc']
-bashcompletions += ['cal']
+  install : opt,
+  build_by_default : opt)
+if opt and not is_disabler(exe)
+  exes += exe
+  manadocs += ['misc-utils/cal.1.adoc']
+  bashcompletions += ['cal']
+endif
 
 opt = not get_option('build-logger').disabled()
 exe = executable(