2002-04-17 13:49:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-04-24 02:02:51 +00:00
|
|
|
# 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.
|
2002-04-17 13:49:29 +00:00
|
|
|
|
|
|
|
.if !target(__<bsd.init.mk>__)
|
|
|
|
__<bsd.init.mk>__:
|
2014-04-24 02:02:51 +00:00
|
|
|
.include <bsd.opts.mk>
|
2015-06-13 19:20:56 +00:00
|
|
|
.-include "local.init.mk"
|
2002-04-17 13:49:29 +00:00
|
|
|
.if exists(${.CURDIR}/../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
.endif
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.MAIN: all
|
2012-08-22 19:25:57 +00:00
|
|
|
|
2012-11-08 21:39:00 +00:00
|
|
|
.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*)
|
2012-08-22 19:25:57 +00:00
|
|
|
# this tells lib.mk and prog.mk to not actually build anything
|
|
|
|
_SKIP_BUILD = not building at level 0
|
|
|
|
.endif
|
2015-06-13 19:20:56 +00:00
|
|
|
.if !empty(_SKIP_BUILD)
|
|
|
|
.warning ${_SKIP_BUILD}
|
|
|
|
.endif
|
2012-08-22 19:25:57 +00:00
|
|
|
|
2005-04-11 07:13:29 +00:00
|
|
|
.endif # !target(__<bsd.init.mk>__)
|