Use ${S} to pass ${SYSDIR} to ports. This makes PORTS_MODULES

feature work when compiling a kernel via "make buildkernel".

Noticed and tested by:	nork
This commit is contained in:
ru 2005-10-27 14:33:08 +00:00
parent c771550d16
commit 7047239f31

View File

@ -29,11 +29,7 @@ modules-${target}:
# Handle out of tree ports
.if !defined(NO_MODULES) && defined(PORTS_MODULES)
.for _dir in ${.CURDIR}/../../..
.if !defined(SYSDIR) && exists(${_dir}/kern/)
SYSDIR= ${_dir}
.endif
.endfor
SYSDIR?= ${S:C;^[^/];${.CURDIR}/&;}
PORTSMODULESENV=SYSDIR=${SYSDIR}
.for __target in all install reinstall clean
${__target}: ports-${__target}