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