1 2 3 4 5 6 7 8 9 10 11 12 13
# $FreeBSD$ .if defined(.PARSEDIR) SRCTOP:= ${.PARSEDIR:tA:H:H} .else SRCTOP:= ${.MAKEFILE_LIST:M*/local.sys.mk:H:H:H} .endif .if ${.CURDIR} == ${SRCTOP} RELDIR = . .elif ${.CURDIR:M${SRCTOP}/*} RELDIR := ${.CURDIR:S,${SRCTOP}/,,} .endif