meson: remove useless mkdir -p

directories are created by install_dir within the subdir custom_target
installation targets.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Eli Schwartz 2018-12-10 01:15:18 -05:00 committed by Allan McRae
parent b67ec90520
commit d73fed4e13

View file

@ -11,8 +11,6 @@ libmakepkg_modules = [
{ 'name' : 'util', 'has_subdir' : true }, { 'name' : 'util', 'has_subdir' : true },
] ]
mkdir_p = 'mkdir -p $DESTDIR/@0@'
foreach module : libmakepkg_modules foreach module : libmakepkg_modules
custom_target( custom_target(
'libmakepkg_@0@'.format(module['name']), 'libmakepkg_@0@'.format(module['name']),
@ -24,10 +22,5 @@ foreach module : libmakepkg_modules
if module.get('has_subdir', false) if module.get('has_subdir', false)
subdir(module['name']) subdir(module['name'])
path = join_paths(get_option('prefix'),
get_option('datadir'),
'makepkg',
module['name'])
meson.add_install_script('sh', '-c', mkdir_p.format(path))
endif endif
endforeach endforeach