File: meson.build

package info (click to toggle)
golang-github-containers-toolbox 0.0.99.3%2Bgit20230118%2B446d7bfdef6a-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,244 kB
  • sloc: sh: 2,611; python: 36; makefile: 34
file content (35 lines) | stat: -rw-r--r-- 897 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
generate_completions_program = find_program('generate_completions.py')

if bashcompletionsdir != ''
  custom_target(
    'bash-completion',
    capture: true,
    command: [generate_completions_program, meson.global_source_root() / 'src', 'bash'],
    depends: [toolbox_go],
    install: true,
    install_dir: bashcompletionsdir,
    output: 'toolbox',
)
endif

if fishcompletionsdir != ''
  custom_target(
    'fish-completion',
    capture: true,
    command: [generate_completions_program, meson.global_source_root() / 'src', 'fish'],
    depends: [toolbox_go],
    install: true,
    install_dir: fishcompletionsdir,
    output: 'toolbox.fish',
)
endif

custom_target(
  'zsh-completion',
  capture: true,
  command: [generate_completions_program, meson.global_source_root() / 'src', 'zsh'],
  depends: [toolbox_go],
  install: true,
  install_dir: zshcompletionsdir,
  output: '_toolbox',
)