pacman/scripts/libmakepkg/buildenv/meson.build
Allan McRae 3ad9366b26 libmakepkg: add fortran buildenv to meson sources array
Fixes #132.

Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit 792df078fa)
2024-05-10 16:57:08 +10:00

23 lines
512 B
Meson

libmakepkg_module = 'buildenv'
sources = [
'buildflags.sh.in',
'compiler.sh.in',
'debugflags.sh.in',
'fortran.sh.in',
'lto.sh.in',
'makeflags.sh.in',
'rust.sh.in',
]
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