|
|
@ -1,5 +1,3 @@ |
|
|
|
systemd = get_option('systemd') |
|
|
|
|
|
|
|
systemd_config_data = configuration_data() |
|
|
|
systemd_config_data.set('LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name())) |
|
|
|
|
|
|
@ -9,7 +7,10 @@ systemd_config_data_file = configure_file( |
|
|
|
configuration: systemd_config_data |
|
|
|
) |
|
|
|
|
|
|
|
if systemd |
|
|
|
systemd = find_program ('systemd', required: false) |
|
|
|
|
|
|
|
if systemd.found() |
|
|
|
message ('systemd was found') |
|
|
|
install_data( |
|
|
|
systemd_config_data_file, |
|
|
|
install_dir: join_paths(get_option('prefix'), 'lib', 'systemd', 'system') |
|
|
|