View | Details | Raw Unified | Return to bug 237290 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/src/sys/conf/kern.post.mk (-3 / +6 lines)
Lines 75-80 Link Here
75
.endif
75
.endif
76
# Keep the related ports builds in the obj directory so that they are only rebuilt once per kernel build
76
# Keep the related ports builds in the obj directory so that they are only rebuilt once per kernel build
77
WRKDIRPREFIX?=	${.OBJDIR}
77
WRKDIRPREFIX?=	${.OBJDIR}
78
MAKEFLAGS_PORTS=${MAKEFLAGS:M*:tW:S/^-m /-m_/g:S/ -m / -m_/g:S/^-j /-m_/g:S/ -j / -m_/g:S/^-J /-m_/g:S/ -J / -m_/g:tw:N-m_*:NMK_AUTO_OBJ=*}
78
PORTSMODULESENV=\
79
PORTSMODULESENV=\
79
	env \
80
	env \
80
	-u CC \
81
	-u CC \
Lines 83-89 Link Here
83
	-u MAKESYSPATH \
84
	-u MAKESYSPATH \
84
	-u MK_AUTO_OBJ \
85
	-u MK_AUTO_OBJ \
85
	-u MAKEOBJDIR \
86
	-u MAKEOBJDIR \
86
	MAKEFLAGS="${MAKEFLAGS:M*:tW:S/^-m /-m_/g:S/ -m / -m_/g:tw:N-m_*:NMK_AUTO_OBJ=*}" \
87
	MAKEFLAGS="${MAKEFLAGS_PORTS}" \
88
	MAKE_JOBS_NUMBER=${.MAKE.JOBS} \
87
	SYSDIR=${SYSDIR} \
89
	SYSDIR=${SYSDIR} \
88
	PATH=${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin \
90
	PATH=${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin \
89
	SRC_BASE=${SRC_BASE} \
91
	SRC_BASE=${SRC_BASE} \
Lines 95-101 Link Here
95
all:
97
all:
96
.for __i in ${PORTS_MODULES}
98
.for __i in ${PORTS_MODULES}
97
	@${ECHO} "===> Ports module ${__i} (all)"
99
	@${ECHO} "===> Ports module ${__i} (all)"
98
	cd $${PORTSDIR:-/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B clean build
100
	${PORTSMODULESENV} ${MAKE} -C "$${PORTSDIR:-/usr/ports}/${__i}" clean build
99
.endfor
101
.endfor
100
102
101
.for __target in install reinstall clean
103
.for __target in install reinstall clean
Lines 103-109 Link Here
103
ports-${__target}:
105
ports-${__target}:
104
.for __i in ${PORTS_MODULES}
106
.for __i in ${PORTS_MODULES}
105
	@${ECHO} "===> Ports module ${__i} (${__target})"
107
	@${ECHO} "===> Ports module ${__i} (${__target})"
106
	cd $${PORTSDIR:-/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B ${__target:C/(re)?install/deinstall reinstall/}
108
	${PORTSMODULESENV} ${MAKE} -C "$${PORTSDIR:-/usr/ports}/${__i}" \
109
	    ${__target:C/(re)?install/deinstall reinstall/}
107
.endfor
110
.endfor
108
.endfor
111
.endfor
109
.endif
112
.endif

Return to bug 237290