diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-08-08 03:38:47 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-08-08 23:11:34 +0200 |
commit | 9289e093ae6fd5484f9119e1ee07d1dffe37cd10 (patch) | |
tree | 245f88c410684e0d2622c82fb91b8fa60a8746fa /src/modules-load/meson.build | |
parent | man: fix typo in journalctl (diff) | |
download | systemd-9289e093ae6fd5484f9119e1ee07d1dffe37cd10.tar.xz systemd-9289e093ae6fd5484f9119e1ee07d1dffe37cd10.zip |
meson: use install_emptydir() and drop meson-make-symlink.sh
The script is mostly equivalent to 'mkdir -p' and 'ln -sfr'.
Let's replace it with install_emptydir() builtin function and
inline meson call.
Diffstat (limited to 'src/modules-load/meson.build')
-rw-r--r-- | src/modules-load/meson.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules-load/meson.build b/src/modules-load/meson.build index af5b4da384..2f1decc8b7 100644 --- a/src/modules-load/meson.build +++ b/src/modules-load/meson.build @@ -10,10 +10,8 @@ executables += [ ] if conf.get('HAVE_KMOD') == 1 - meson.add_install_script('sh', '-c', - mkdir_p.format(modulesloaddir)) + install_emptydir(modulesloaddir) if install_sysconfdir - meson.add_install_script('sh', '-c', - mkdir_p.format(sysconfdir / 'modules-load.d')) + install_emptydir(sysconfdir / 'modules-load.d') endif endif |