Changeset View
Changeset View
Standalone View
Standalone View
share/mk/meta.sys.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# $Id: meta.sys.mk,v 1.32 2017/06/11 03:24:04 sjg Exp $ | # $Id: meta.sys.mk,v 1.34 2019/01/24 19:36:25 sjg Exp $ | ||||
# | # | ||||
# @(#) Copyright (c) 2010, Simon J. Gerraty | # @(#) Copyright (c) 2010, Simon J. Gerraty | ||||
# | # | ||||
# This file is provided in the hope that it will | # This file is provided in the hope that it will | ||||
# be of use. There is absolutely NO WARRANTY. | # be of use. There is absolutely NO WARRANTY. | ||||
# Permission to copy, redistribute or otherwise | # Permission to copy, redistribute or otherwise | ||||
# use this file is hereby granted provided that | # use this file is hereby granted provided that | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
# we use the pseudo machine "host" for the build host. | # we use the pseudo machine "host" for the build host. | ||||
# this should be taken care of before we get here | # this should be taken care of before we get here | ||||
.if ${OBJTOP:Ua} == ${HOST_OBJTOP:Ub} | .if ${OBJTOP:Ua} == ${HOST_OBJTOP:Ub} | ||||
MACHINE = host | MACHINE = host | ||||
.endif | .endif | ||||
.if ${.MAKE.LEVEL} == 0 | .if !defined(MACHINE0) | ||||
# it can be handy to know which MACHINE kicked off the build | # it can be handy to know which MACHINE kicked off the build | ||||
# for example, if using Makefild.depend for multiple machines, | # for example, if using Makefild.depend for multiple machines, | ||||
# allowing only MACHINE0 to update can keep things simple. | # allowing only MACHINE0 to update can keep things simple. | ||||
MACHINE0 := ${MACHINE} | MACHINE0 := ${MACHINE} | ||||
.export MACHINE0 | .export MACHINE0 | ||||
.endif | |||||
.if !defined(META2DEPS) | |||||
.if defined(PYTHON) && exists(${PYTHON}) | .if defined(PYTHON) && exists(${PYTHON}) | ||||
# we prefer the python version of this - it is much faster | # we prefer the python version of this - it is much faster | ||||
META2DEPS ?= ${.PARSEDIR}/meta2deps.py | META2DEPS ?= ${.PARSEDIR}/meta2deps.py | ||||
.else | .else | ||||
META2DEPS ?= ${.PARSEDIR}/meta2deps.sh | META2DEPS ?= ${.PARSEDIR}/meta2deps.sh | ||||
.endif | .endif | ||||
META2DEPS := ${META2DEPS} | META2DEPS := ${META2DEPS} | ||||
.export META2DEPS | .export META2DEPS | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |