diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-10-31 00:07:41 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-10-31 00:07:41 +0000 |
commit | 95137b228edbb0e560a8bd9f8618e1d6cdf9b54f (patch) | |
tree | dd10942e80913f62b7d75571e854d37260ca4eef /share/mk/src.sys.env.mk | |
parent | 635718c0d98a470c4610f1f4c3c9d0a261e7fec2 (diff) | |
download | src-test2-95137b228edbb0e560a8bd9f8618e1d6cdf9b54f.tar.gz src-test2-95137b228edbb0e560a8bd9f8618e1d6cdf9b54f.zip |
Notes
Diffstat (limited to 'share/mk/src.sys.env.mk')
-rw-r--r-- | share/mk/src.sys.env.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/share/mk/src.sys.env.mk b/share/mk/src.sys.env.mk index 1b436ce46cb6..f068f8f82534 100644 --- a/share/mk/src.sys.env.mk +++ b/share/mk/src.sys.env.mk @@ -6,10 +6,14 @@ SRCTOP:= ${.PARSEDIR:tA:H:H} .if ${.CURDIR} == ${SRCTOP} -RELDIR = . +RELDIR= . +RELTOP= . .elif ${.CURDIR:M${SRCTOP}/*} -RELDIR := ${.CURDIR:S,${SRCTOP}/,,} +RELDIR:= ${.CURDIR:S,${SRCTOP}/,,} .endif +RELTOP?= ${RELDIR:C,[^/]+,..,g} +RELOBJTOP?= ${RELTOP} +RELSRCTOP?= ${RELTOP} # site customizations that do not depend on anything! SRC_ENV_CONF?= /etc/src-env.conf |