View | Details | Raw Unified | Return to bug 235596
Collapse All | Expand All

(-)b/Mk/Uses/gmake.mk (-3 / +17 lines)
Lines 3-21 Link Here
3
# Provide support to use the GNU make
3
# Provide support to use the GNU make
4
#
4
#
5
# Feature:		gmake
5
# Feature:		gmake
6
# Usage:		USES=gmake
6
# Usage:		USES=gmake or USES=gmake:ARGS
7
# Valid ARGS:		extract, patch, build (default)
8
# Examples:
9
# 	USES=gmake:extract  # the ${GMAKE} is available in the 'extract' target
10
# 	USES=gmake:extract,build  # ${MAKE_CMD} becomes gmake as well
7
#
11
#
8
# MAINTAINER: portmgr@FreeBSD.org
12
# MAINTAINER: portmgr@FreeBSD.org
9
13
10
.if !defined(_INCLUDE_USES_GMAKE_MK)
14
.if !defined(_INCLUDE_USES_GMAKE_MK)
11
_INCLUDE_USES_GMAKE_MK=	yes
15
_INCLUDE_USES_GMAKE_MK=	yes
12
16
13
.if !empty(gmake_ARGS)
17
.if empty(gmake_ARGS)
14
IGNORE=	Incorrect 'USES+= gmake:${gmake_ARGS}' gmake takes no arguments
18
gmake_ARGS=	build
15
.endif
19
.endif
16
20
21
.if ${gmake_ARGS:Mbuild}
17
BUILD_DEPENDS+=		gmake:devel/gmake
22
BUILD_DEPENDS+=		gmake:devel/gmake
18
CONFIGURE_ENV+=		MAKE=gmake
23
CONFIGURE_ENV+=		MAKE=gmake
19
MAKE_CMD=		gmake
24
MAKE_CMD=		gmake
25
.endif
26
27
.if ${gmake_ARGS:Mextract}
28
EXTRACT_DEPENDS+=	gmake:devel/gmake
29
.endif
30
31
.if ${gmake_ARGS:Mpatch}
32
PATCH_DEPENDS+=	gmake:devel/gmake
33
.endif
20
34
21
.endif
35
.endif

Return to bug 235596