install -D "target/release/${SPELL}" -t "${INSTALL_ROOT}/usr/bin" &&

if is_depends_enabled "${SPELL}" "bash-completion"; then
  RUST_LOG=off ./target/release/${SPELL} completions bash > "target/${SPELL}.bash" &&
  install -D "target/${SPELL}.bash" "${INSTALL_ROOT}/usr/share/bash-completion/ccompletions/${SPELL}"
fi &&

if is_depends_enabled "${SPELL}" "fish"; then
  RUST_LOG=off ./target/release/${SPELL} completions fish > "target/${SPELL}.fish" &&
  install -D "target/${SPELL}.fish" "${INSTALL_ROOT}/usr/share/fish/vendor_ccompletions.d/${SPELL}.fish"
fi &&

if is_depends_enabled "${SPELL}" "zsh"; then
  RUST_LOG=off ./target/release/${SPELL} completions zsh > "target/${SPELL}.zsh" &&
  install -D "target/${SPELL}.zsh" "${INSTALL_ROOT}/usr/share/zsh/site-functions/_${SPELL}"
fi
