cd $SOURCE_DIRECTORY                                                     &&
mkdir -vp $INSTALL_ROOT/usr/include/drm/                                 &&
cp shared-core/nouveau_drm.h $INSTALL_ROOT/usr/include/drm/              &&
mkdir -vp $INSTALL_ROOT/lib/modules/$(get_kernel_version)/kernel/drivers/char/drm  &&

if [[ "$(get_kernel_version | cut -c-3)" == "2.6" ]]; then
  cp -v $SOURCE_DIRECTORY/linux-core/*.ko                                \
  $INSTALL_ROOT/lib/modules/$(get_kernel_version)/kernel/drivers/char/drm/
else
  cp -v $SOURCE_DIRECTORY/linux-core/*.o                                 \
  $INSTALL_ROOT/lib/modules/$(get_kernel_version)/kernel/drivers/char/drm/
fi
