1# $FreeBSD$ 2 3# early setup only see also src.sys.mk 4 5# make sure this is defined in a consistent manner 6SRCTOP:= ${.PARSEDIR:tA:H:H} 7 8# site customizations that do not depend on anything! 9SRC_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 13.endif 14 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},} 20.endif 21.if ${MAKESYSPATH:Uno:M*.../*} != "" 22MAKESYSPATH:= ${MAKESYSPATH:S,.../share/mk,${.PARSEDIR:tA},} 23.export MAKESYSPATH 24.endif 25