1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00
systemd-stable/sysctl.d/meson.build
Zbigniew Jędrzejewski-Szmek 94e75a5409 meson: create dirs and touch /usr
This is the equivalent of $(INSTALL_DIRS) and install-touch-usr-hook.
I did not bother to create the directories into which we install files,
since they will be created anyway.

v2:
- remove bashism
2017-04-23 21:47:27 -04:00

24 lines
485 B
Meson

# -*- mode: meson -*-
install_data(
'50-default.conf',
install_dir : sysctldir)
in_files = []
if conf.get('ENABLE_COREDUMP', 0) == 1
in_files += ['50-coredump.conf']
endif
foreach file : in_files
gen = configure_file(
input : file + '.in',
output : file,
configuration : substs)
install_data(gen,
install_dir : sysctldir)
endforeach
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/sysctl.d'))