mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
#
|
|
# Provide support to use the GNU make
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
#
|
|
# Feature: gmake
|
|
# Usage: USES=gmake
|
|
#
|
|
|
|
.if !defined(_INCLUDE_USES_GMAKE_MK)
|
|
_INCLUDE_USES_GMAKE_MK= yes
|
|
|
|
.if defined(gmake_ARGS)
|
|
IGNORE= Incorrect 'USES+= gmake:${gmake_ARGS}' gmake takes no arguments
|
|
.endif
|
|
|
|
BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
|
|
CONFIGURE_ENV+= MAKE=${GMAKE}
|
|
_USES_POST+= gmake
|
|
.endif
|
|
|
|
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_GMAKE_MK_POST)
|
|
_INCLUDE_USES_GMAKE_MK_POST= yes
|
|
|
|
.if !target(do-build)
|
|
do-build:
|
|
@(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}; then \
|
|
if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \
|
|
${ECHO_MSG} "===> Compilation failed unexpectedly."; \
|
|
(${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") | ${FMT} 75 79 ; \
|
|
fi; \
|
|
${FALSE}; \
|
|
fi)
|
|
.endif
|
|
|
|
.if !target(do-install)
|
|
do-install:
|
|
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
|
|
.endif
|
|
|
|
.endif
|