MFC: 1.88: Use ${S} to pass ${SYSDIR} to ports.

This commit is contained in:
ru 2005-11-16 10:03:02 +00:00
parent 40f4fd56fd
commit b079fad903

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}