Add RELOBJTOP and RELSRCTOP for relative paths.
RELSRCTOP is likely not as useful since make will always be running from inside of .OBJDIR and using something like ${.CURDIR}/${RELSRCTOP} is not redundant for ${SRCTOP}. Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
a0b61d5bb2
commit
d140f81f0a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user