diff options
Diffstat (limited to 'share/mk/local.sys.mk')
-rw-r--r-- | share/mk/local.sys.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/share/mk/local.sys.mk b/share/mk/local.sys.mk new file mode 100644 index 0000000..d379e8f --- /dev/null +++ b/share/mk/local.sys.mk @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.if defined(.PARSEDIR) +SRCTOP:= ${.PARSEDIR:tA:H:H} +.else +SRCTOP:= ${.MAKE.MAKEFILES:M*/local.sys.mk:H:H:H} +.endif + +.if ${.CURDIR} == ${SRCTOP} +RELDIR = . +.elif ${.CURDIR:M${SRCTOP}/*} +RELDIR := ${.CURDIR:S,${SRCTOP}/,,} +.endif |