Use PORTSDIR, falling back to /usr/ports

This commit is contained in:
Warner Losh 2004-11-14 00:22:18 +00:00
parent 2868be0b05
commit 10695f3acb

View File

@ -36,7 +36,7 @@ PORTSMODULESENV=SYSDIR=${SYSDIR}
${target}: ports-${target}
ports-${target}:
.for __i in ${PORTS_MODULES}
cd /usr/ports/${__i}; ${PORTSMODULESENV} ${MAKE} -B ${target}
cd $${PORTSDIR:-/usr/ports/}${__i}; ${PORTSMODULESENV} ${MAKE} -B ${target}
.endfor
.endfor
.endif