xref: /freebsd/share/mk/bsd.init.mk (revision cc3f4b99653c34ae64f8a1fddea370abefef680e)
1# $FreeBSD$
2
3# The include file <bsd.init.mk> includes <bsd.opts.mk>,
4# ../Makefile.inc and <bsd.own.mk>; this is used at the
5# top of all <bsd.*.mk> files that actually "build something".
6# bsd.opts.mk is included early so Makefile.inc can use the
7# MK_FOO variables.
8
9.if !target(__<bsd.init.mk>__)
10__<bsd.init.mk>__:
11.sinclude "local.init.mk"
12.include <bsd.opts.mk>
13.if exists(${.CURDIR}/../Makefile.inc)
14.include "${.CURDIR}/../Makefile.inc"
15.endif
16.include <bsd.own.mk>
17.MAIN: all
18
19.if defined(.PARSEDIR)
20.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*)
21# this tells lib.mk and prog.mk to not actually build anything
22_SKIP_BUILD = not building at level 0
23.endif
24.endif
25
26.endif	# !target(__<bsd.init.mk>__)
27