Skip to content

Commit

Permalink
completion: Depend on Toolbx binary build
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryMichal committed May 20, 2022
1 parent 1d7dc6c commit 7e23b93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions completion/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,23 @@ endif
completion_bash = custom_target('bash-completion',
capture: true,
command: [generate_completions_program, meson.global_source_root() / 'src', 'bash'],
depends: [toolbox],
install: true,
install_dir: bash_comp_dir,
output: 'toolbox')

completion_zsh = custom_target('zsh-completion',
capture: true,
command: [generate_completions_program, meson.global_source_root() / 'src', 'zsh'],
depends: [toolbox],
install: true,
install_dir: get_option('datadir') / 'zsh' / 'site_functions',
output: '_toolbox')

completion_fish = custom_target('fish-completion',
capture: true,
command: [generate_completions_program, meson.global_source_root() / 'src', 'fish'],
depends: [toolbox],
install: true,
install_dir: fish_comp_dir,
output: 'toolbox.fish')
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ endif

message('Host machine dynamic linker:', dynamic_linker)

custom_target(
toolbox = custom_target(
'toolbox',
build_by_default: true,
command: [
Expand Down

0 comments on commit 7e23b93

Please sign in to comment.