]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: install systemd-ac-power under /usr/bin
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Nov 2022 16:17:57 +0000 (01:17 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Nov 2022 22:04:23 +0000 (23:04 +0100)
And test the its help message.

The program is useful for e.g. scripts that conditionalize their tasks
to be invoked only when running on AC power.

meson.build

index 00daeac1b6cd8572eada8cb8ebf39ff7f55957de..2d41ff8799d0fa9d6d2a79ecc349868dad99caaf 100644 (file)
@@ -3444,15 +3444,14 @@ public_programs += executable(
         install : true,
         install_dir : rootlibexecdir)
 
-executable(
+public_programs += executable(
         'systemd-ac-power',
         'src/ac-power/ac-power.c',
         include_directories : includes,
         link_with : [libshared],
         dependencies : [versiondep],
         install_rpath : rootpkglibdir,
-        install : true,
-        install_dir : rootlibexecdir)
+        install : true)
 
 public_programs += executable(
         'systemd-detect-virt',