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

sources = [
  'docs.sh.in',
  'emptydirs.sh.in',
  'libtool.sh.in',
  'purge.sh.in',
  'staticlibs.sh.in',
  'strip.sh.in',
  'zipman.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