3 # early setup only see also src.sys.mk
5 # make sure this is defined in a consistent manner
6 SRCTOP:= ${.PARSEDIR:tA:H:H}
8 # site customizations that do not depend on anything!
9 SRC_ENV_CONF?= /etc/src-env.conf
10 .if !empty(SRC_ENV_CONF) && !target(_src_env_conf_included_)
11 .-include "${SRC_ENV_CONF}"
12 _src_env_conf_included_: .NOTMAIN
15 # If we were found via .../share/mk we need to replace that
16 # with ${.PARSEDIR:tA} so that we can be found by
17 # sub-makes launched from objdir.
18 .if ${.MAKEFLAGS:M.../share/mk} != ""
19 .MAKEFLAGS:= ${.MAKEFLAGS:S,.../share/mk,${.PARSEDIR:tA},}
21 .if ${MAKESYSPATH:Uno:M*.../*} != ""
22 MAKESYSPATH:= ${MAKESYSPATH:S,.../share/mk,${.PARSEDIR:tA},}