make install DESTDIR=${INSTALL_ROOT} &&

if [[ $KVM_ARCHS == *x86_64-softmmu* ]]; then
  ln -f $INSTALL_ROOT/usr/bin/qemu-system-x86_64 \
        $INSTALL_ROOT/usr/bin/qemu-kvm
fi &&

if [[ "$KVM_DIAGTOOLS" == "y" ]]; then
  message "${MESSAGE_COLOR}Installing KVM diagnostic/debugging tools...${DEFAULT_COLOR}" &&
  install -m 0755 kvm/test/kvmtrace $INSTALL_ROOT/usr/bin/kvmtrace &&
  install -m 0755 kvm/test/kvmtrace_format $INSTALL_ROOT/usr/bin/kvmtrace_format &&
  install -m 0755 kvm/kvm_stat $INSTALL_ROOT/usr/bin/kvm_stat
fi
