# Provide support to use the GNU make
#
# Feature:		gmake
# Usage:		USES=gmake
#
# MAINTAINER: tijl@FreeBSD.org

.if !defined(_INCLUDE_USES_GMAKE_MK)
_INCLUDE_USES_GMAKE_MK=	yes

.  if !empty(gmake_ARGS)
IGNORE=	Incorrect 'USES+= gmake:${gmake_ARGS}' gmake takes no arguments
.  endif

BUILD_DEPENDS+=		gmake>=4.4.1:devel/gmake
CONFIGURE_ENV+=		MAKE=${GMAKE}
MAKE_CMD=		${GMAKE}

.endif
