local exec_prefix="${INSTALL_ROOT}/usr/bin" &&
local man_dir="${INSTALL_ROOT}/usr/share/man/man1" &&

for dir in "${exec_prefix}" "${man_dir}"; do
  if [ ! -d "${dir}" ]; then
    install -vm 755 -d "${dir}"
  fi
done &&

for binary in pigz unpigz; do
  install -vm 755 "${binary}" "${exec_prefix}/${binary}"
done &&

install -vm 644 pigz.1 "${man_dir}/pigz.1"
