Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions conf/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
systemd = dependency('systemd')

if systemd.found()
servicedir = systemd.get_variable('systemdsystemunitdir')
unit_files = [
'mctp-local.target',
'mctp.target',
'mctpd.service',
]

foreach unit : unit_files
configure_file(input: unit,
output: unit,
copy: true,
install_dir: servicedir)
endforeach
endif

4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
project(
'mctp', 'c',
meson_version: '>= 0.47.0',
meson_version: '>= 0.58.0',
version: 'v1.1',
license: 'GPLv2',
default_options: [
Expand Down Expand Up @@ -52,3 +52,5 @@ if libsystemd.found()
install_dir: get_option('sbindir'),
)
endif

subdir('conf')