diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index db6d446f0658..c3b82b2daf5e 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1224,6 +1224,9 @@ USE_SUBMAKE= yes .if exists(${MASTERDIR}/Makefile.local) .include "${MASTERDIR}/Makefile.local" USE_SUBMAKE= yes +.elif ${MASTERDIR} != ${.CURDIR} && exists(${.CURDIR}/Makefile.local) +.include "${.CURDIR}/Makefile.local" +USE_SUBMAKE= yes .endif .for _CATEGORY in ${CATEGORIES}