2018-11-27 18:23:02 +09:00
|
|
|
libmakepkg_module = 'buildenv'
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
'buildflags.sh.in',
|
2024-01-16 22:44:10 +00:00
|
|
|
'c.sh.in',
|
2018-11-27 18:23:02 +09:00
|
|
|
'compiler.sh.in',
|
2024-01-16 22:40:24 +00:00
|
|
|
'cpp.sh.in',
|
2024-01-16 22:51:23 +00:00
|
|
|
'cxx.sh.in',
|
2021-03-01 14:08:18 +10:00
|
|
|
'lto.sh.in',
|
2018-11-27 18:23:02 +09:00
|
|
|
'makeflags.sh.in',
|
2023-01-13 11:10:01 +10:00
|
|
|
'rust.sh.in',
|
2018-11-27 18:23:02 +09:00
|
|
|
]
|
|
|
|
|
|
|
|
foreach src : sources
|
|
|
|
output_dir = join_paths(get_option('datadir'), 'makepkg', libmakepkg_module)
|
|
|
|
|
|
|
|
custom_target(
|
|
|
|
libmakepkg_module + '_' + src.underscorify(),
|
|
|
|
command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
|
|
|
|
input : src,
|
|
|
|
output : '@BASENAME@',
|
|
|
|
install : true,
|
|
|
|
install_dir : output_dir)
|
|
|
|
endforeach
|