Don't build PORTS_MODULES if NO_MODULES is defined

This commit is contained in:
Warner Losh 2005-06-09 05:38:18 +00:00
parent a3d239bc29
commit 9f74b22210

View File

@ -28,7 +28,7 @@ modules-${target}:
.endfor
# Handle out of tree ports
.if defined(PORTS_MODULES)
.if !defined(NO_MODULES) && defined(PORTS_MODULES)
.for _dir in ${.CURDIR}/../../..
.if !defined(SYSDIR) && exists(${_dir}/kern/)
SYSDIR= ${_dir}