Now our baseline of meson is 0.62, hence install_symlink() can be used. Note, install_symlink() implies install_emptydir() for specified install_dir. Hence, this also drops several unnecessary install_emptydir() calls. Note, the function currently does not support 'relative' and 'force' flags, so several 'ln -frsT' inline calls cannot be replaced.
18 lines
425 B
Meson
18 lines
425 B
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
if conf.get('HAVE_BLKID') != 1
|
|
subdir_done()
|
|
endif
|
|
|
|
executables += [
|
|
executable_template + {
|
|
'name' : 'systemd-dissect',
|
|
'public' : true,
|
|
'sources' : files('dissect.c'),
|
|
},
|
|
]
|
|
|
|
install_symlink('mount.ddi',
|
|
pointing_to : sbin_to_bin + 'systemd-dissect',
|
|
install_dir : sbindir)
|