mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
5a4b548ab2
There's no need to support fmake anymore. Always assume we can use bmake's :tA modifier. The ports tree hasn't supported fmake in about a decade anyway. Simplify here. Sponsored by: Netflix Reviewed by: brooks, emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/980
18 lines
488 B
Makefile
18 lines
488 B
Makefile
|
|
.if !defined(PORTSDIR)
|
|
# Autodetect if the command is being run in a ports tree that's not rooted
|
|
# in the default /usr/ports. The ../../.. case is in case ports ever grows
|
|
# a third level.
|
|
.for RELPATH in . .. ../.. ../../..
|
|
.if !defined(_PORTSDIR) && exists(${.CURDIR}/${RELPATH}/Mk/bsd.port.mk)
|
|
_PORTSDIR= ${.CURDIR}/${RELPATH}
|
|
.endif
|
|
.endfor
|
|
_PORTSDIR?= /usr/ports
|
|
PORTSDIR= ${_PORTSDIR:tA}
|
|
.endif
|
|
|
|
BSDPORTSUBDIRMK?= ${PORTSDIR}/Mk/bsd.port.subdir.mk
|
|
|
|
.include "${BSDPORTSUBDIRMK}"
|