summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/source/meson.build
blob: 59326133c6d0d380addd1fc141a3e5dd4cc7cab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
libmakepkg_module = 'source'

sources = [
  'bzr.sh.in',
  'file.sh.in',
  'git.sh.in',
  'hg.sh.in',
  'local.sh.in',
  'svn.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