Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/local.meta.sys.mk
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.if ${MACHINE} == "host" | .if ${MACHINE} == "host" | ||||
OBJTOP := ${HOST_OBJTOP} | OBJTOP := ${HOST_OBJTOP} | ||||
.endif | .endif | ||||
.if ${.MAKE.LEVEL} == 0 || empty(PYTHON) | .if ${.MAKE.LEVEL} == 0 || empty(PYTHON) | ||||
PYTHON ?= /usr/local/bin/python | PYTHON ?= /usr/local/bin/python | ||||
.export PYTHON | .export PYTHON | ||||
# this works best if share/mk is ready for it. | |||||
BUILD_AT_LEVEL0= no | |||||
# _SKIP_BUILD is not 100% as it requires wrapping all 'all:' targets to avoid | # _SKIP_BUILD is not 100% as it requires wrapping all 'all:' targets to avoid | ||||
# building in MAKELEVEL0. Just prohibit 'all' entirely in this case to avoid | # building in MAKELEVEL0. Just prohibit 'all' entirely in this case to avoid | ||||
# problems. | # problems. | ||||
.if ${MK_DIRDEPS_BUILD} == "yes" && \ | .if ${MK_DIRDEPS_BUILD} == "yes" && ${.MAKE.LEVEL} == 0 | ||||
${.MAKE.LEVEL} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" | |||||
.MAIN: dirdeps | .MAIN: dirdeps | ||||
.if make(all) | .if make(all) | ||||
.error DIRDEPS_BUILD: Please run '${MAKE}' instead of '${MAKE} all'. | .error DIRDEPS_BUILD: Please run '${MAKE}' instead of '${MAKE} all'. | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
# we want to end up with a singe stage tree for all machines | # we want to end up with a singe stage tree for all machines | ||||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |