mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
28 lines
791 B
Makefile
28 lines
791 B
Makefile
# $FreeBSD$
|
|
|
|
# The include file <bsd.init.mk> includes <bsd.opts.mk>,
|
|
# ../Makefile.inc and <bsd.own.mk>; this is used at the
|
|
# top of all <bsd.*.mk> files that actually "build something".
|
|
# bsd.opts.mk is included early so Makefile.inc can use the
|
|
# MK_FOO variables.
|
|
|
|
.if !target(__<bsd.init.mk>__)
|
|
__<bsd.init.mk>__:
|
|
.include <bsd.opts.mk>
|
|
.-include "local.init.mk"
|
|
.if exists(${.CURDIR}/../Makefile.inc)
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
.endif
|
|
.include <bsd.own.mk>
|
|
.MAIN: all
|
|
|
|
.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*)
|
|
# this tells lib.mk and prog.mk to not actually build anything
|
|
_SKIP_BUILD = not building at level 0
|
|
.endif
|
|
.if ${.MAKE.LEVEL} > 0 && !empty(_SKIP_BUILD)
|
|
.warning ${_SKIP_BUILD}
|
|
.endif
|
|
|
|
.endif # !target(__<bsd.init.mk>__)
|