build: Disambiguate the 'toolbox' file and target
Fallout from 6c0b045e1a
https://github.com/containers/toolbox/pull/1120
This commit is contained in:
parent
66d0418595
commit
e6c0c00d79
4 changed files with 9 additions and 9 deletions
|
@ -17,7 +17,7 @@ endif
|
||||||
completion_bash = custom_target('bash-completion',
|
completion_bash = custom_target('bash-completion',
|
||||||
capture: true,
|
capture: true,
|
||||||
command: [generate_completions_program, meson.global_source_root() / 'src', 'bash'],
|
command: [generate_completions_program, meson.global_source_root() / 'src', 'bash'],
|
||||||
depends: [toolbox],
|
depends: [toolbox_go],
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: bash_comp_dir,
|
install_dir: bash_comp_dir,
|
||||||
output: 'toolbox')
|
output: 'toolbox')
|
||||||
|
@ -25,7 +25,7 @@ completion_bash = custom_target('bash-completion',
|
||||||
completion_zsh = custom_target('zsh-completion',
|
completion_zsh = custom_target('zsh-completion',
|
||||||
capture: true,
|
capture: true,
|
||||||
command: [generate_completions_program, meson.global_source_root() / 'src', 'zsh'],
|
command: [generate_completions_program, meson.global_source_root() / 'src', 'zsh'],
|
||||||
depends: [toolbox],
|
depends: [toolbox_go],
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: get_option('datadir') / 'zsh' / 'site-functions',
|
install_dir: get_option('datadir') / 'zsh' / 'site-functions',
|
||||||
output: '_toolbox')
|
output: '_toolbox')
|
||||||
|
@ -33,7 +33,7 @@ completion_zsh = custom_target('zsh-completion',
|
||||||
completion_fish = custom_target('fish-completion',
|
completion_fish = custom_target('fish-completion',
|
||||||
capture: true,
|
capture: true,
|
||||||
command: [generate_completions_program, meson.global_source_root() / 'src', 'fish'],
|
command: [generate_completions_program, meson.global_source_root() / 'src', 'fish'],
|
||||||
depends: [toolbox],
|
depends: [toolbox_go],
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: fish_comp_dir,
|
install_dir: fish_comp_dir,
|
||||||
output: 'toolbox.fish')
|
output: 'toolbox.fish')
|
||||||
|
|
|
@ -33,10 +33,10 @@ if tmpfilesdir == '' or not fs.exists('/run/.containerenv')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
toolbox = files('toolbox')
|
toolbox_sh = files('toolbox')
|
||||||
|
|
||||||
if shellcheck.found()
|
if shellcheck.found()
|
||||||
test('shellcheck', shellcheck, args: [toolbox])
|
test('shellcheck', shellcheck, args: [toolbox_sh])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if not skopeo.found()
|
if not skopeo.found()
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
toolbox_sh = files('toolbox.sh')
|
profile_toolbox_sh = files('toolbox.sh')
|
||||||
|
|
||||||
if shellcheck.found()
|
if shellcheck.found()
|
||||||
test('shellcheck profile.d', shellcheck, args: ['--shell=sh', toolbox_sh])
|
test('shellcheck profile.d', shellcheck, args: ['--shell=sh', profile_toolbox_sh])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install_data(
|
install_data(
|
||||||
toolbox_sh,
|
profile_toolbox_sh,
|
||||||
install_dir: profiledir,
|
install_dir: profiledir,
|
||||||
)
|
)
|
||||||
|
|
|
@ -48,7 +48,7 @@ endif
|
||||||
|
|
||||||
message('Host machine dynamic linker:', dynamic_linker)
|
message('Host machine dynamic linker:', dynamic_linker)
|
||||||
|
|
||||||
toolbox = custom_target(
|
toolbox_go = custom_target(
|
||||||
'toolbox',
|
'toolbox',
|
||||||
command: [
|
command: [
|
||||||
go_build_wrapper_program,
|
go_build_wrapper_program,
|
||||||
|
|
Loading…
Reference in a new issue