aboutsummaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.symver.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2023-04-22 18:15:31 -0700
committerSimon J. Gerraty <sjg@FreeBSD.org>2023-04-22 18:15:31 -0700
commit04989ef426f911e0d7f674f66a080a0af3376b1d (patch)
tree01865468c62582c3af560ff319eba26c7b861eb6 /share/mk/bsd.symver.mk
parentdf53ae0fdd98e9452095ac2fdaf95fcfac8c9c7f (diff)
bmake 20230123 gives us .SYSPATH
No need to faff about trying to work out where bmake is looking - it tells you.
Diffstat (limited to 'share/mk/bsd.symver.mk')
-rw-r--r--share/mk/bsd.symver.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/bsd.symver.mk b/share/mk/bsd.symver.mk
index a7bffad5ceae..1969097b7089 100644
--- a/share/mk/bsd.symver.mk
+++ b/share/mk/bsd.symver.mk
@@ -14,6 +14,9 @@ VERSION_MAP?= Version.map
CLEANFILES+= ${VERSION_MAP}
+.if ${MAKE_VERSION} >= 20230123
+_mpath= ${.SYSPATH}
+.else
# Compute the make's -m path.
_mpath=
_oarg=
@@ -24,6 +27,7 @@ _mpath+= ${_arg}
_oarg= ${_arg}
.endfor
_mpath+= /usr/share/mk
+.endif
# Look up ${VERSION_GEN} in ${_mpath}.
_vgen=