3 .if ${MK_DIRDEPS_BUILD} == "yes"
4 MAKE_PRINT_VAR_ON_ERROR+= \
19 ${MAKE_PRINT_VAR_ON_ERROR_XTRAS}
21 .if ${.MAKE.LEVEL} > 0
22 MAKE_PRINT_VAR_ON_ERROR += .MAKE.MAKEFILES .PATH
27 OBJTOP?= ${.OBJDIR:S,${.CURDIR},,}${SRCTOP}
32 .if ${.MAKE.MODE:Mmeta*} != ""
33 # we can afford to use cookies to prevent some targets
34 # re-running needlessly but only when using filemon.
35 .if ${.MAKE.MODE:Mnofilemon} == ""
36 META_COOKIE_COND= empty(.TARGET:M${.OBJDIR})
37 META_COOKIE= ${COOKIE.${.TARGET}:U${${META_COOKIE_COND}:?${.OBJDIR}/${.TARGET}:${.TARGET}}}
38 META_COOKIE_RM= @rm -f ${META_COOKIE}
39 META_COOKIE_TOUCH= @touch ${META_COOKIE}
40 CLEANFILES+= ${META_TARGETS}
41 _meta_dep_before: .USEBEFORE .NOTMAIN
43 _meta_dep_after: .USE .NOTMAIN
45 # Attach this to a target to allow it to benefit from meta mode's
46 # not rerunning a command if it doesn't need to be considering its
47 # metafile/filemon-tracked dependencies.
48 META_DEPS= _meta_dep_before _meta_dep_after .META
51 # some targets need to be .PHONY - but not in meta mode
57 META_DEPS+= ${META_NOPHONY}