#---
## Replace sorcerys default_build with a custom one
#---
function default_build()
{
  if [[ -f ${INSTALL_ROOT}/usr/share/GNUstep/Makefiles/GNUstep.sh ]]
  then
    . ${INSTALL_ROOT}/usr/share/GNUstep/Makefiles/GNUstep.sh
  fi
  if [[ -x ./configure ]]
  then
    real_default_build
  else
    make $@
  fi
}

function default_post_install()
{
  real_default_post_install  &&
  if [[ -x ${INSTALL_ROOT}/usr/bin/make_services ]]; then
    message "Running make_services"
    ${INSTALL_ROOT}/usr/bin/make_services
  fi
}

function default_final()
{
  if [[ -x ${INSTALL_ROOT}/usr/bin/make_services ]]; then
    message "Running make_services"
    ${INSTALL_ROOT}/usr/bin/make_services
  fi
}

