default_pre_build      &&
cd ${SOURCE_DIRECTORY} &&

#right install paths
sedit "s/\/usr\/local/${INSTALL_ROOT}\/usr/" config.mk 

if ( is_depends_enabled $SPELL libxinerama ); then
  message "Leaving Xinerama enabled"
else
  sedit 's/^XINERAMA/#XINERAMA/g' config.mk &&
  message "Xinerama disabled"
fi &&

if [[ "$DWM_CONFIG" == 'y' ]]; then
  if [[ -e ${INSTALL_ROOT}/usr/share/doc/dwm/config.def.h ]]; then
    cp ${INSTALL_ROOT}/usr/share/doc/dwm/config.def.h ./
  fi &&
  if query 'Do you want to edit your config now?' n; then
    if [ -z"$EDITOR" ]; then
      . /etc/profile.d/editor.sh
    fi
    ${EDITOR:-nano} config.def.h
  fi
fi
