build: Fix install location for template files

This commit is contained in:
Andy Williams 2017-11-24 11:01:03 +00:00
parent 25339554b7
commit d89ae75f82
1 changed files with 3 additions and 2 deletions

View File

@ -22,15 +22,16 @@ cmd = [ edje_cc,
skeleton_meta = ['eflproject', 'eflproject_python']
template_dir = join_paths(get_option('datadir'), 'edi', 'templates')
foreach meta : skeleton_meta
custom_target('meta ' + meta,
input : meta + '.edc',
output : meta + '.edj',
command : cmd,
install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'edi', 'templates'),
install_dir: template_dir,
install: true,
)
out = join_paths(get_option('prefix'), get_option('datadir'), 'edi', 'templates') + '/' + meta + '.edj'
out = join_paths(get_option('prefix'), template_dir, meta + '.edj')
meson.add_install_script('chmod', 'a+r', out)
endforeach