# special functions for projects which use the NetSurf buildsystem

default_build () {
  case " $OPTS" in
    (*\ COMPONENT_TYPE=*) ;;
    (*) OPTS+=' COMPONENT_TYPE=lib-shared' ;;
  esac &&
  make -j $((${#DISTCC_HOSTS[*]} * JOBS_PER_HOST + MAKE_NJOBS)) \
       PREFIX="${INSTALL_ROOT}/usr" \
       $OPTS
}

default_install () {
  make -j "$MAKE_NJOBS" \
       PREFIX="${INSTALL_ROOT}/usr" \
       $OPTS \
       install
}
