xref: /freebsd/share/mk/bsd.init.mk (revision 7750ad47a9a7dbc83f87158464170c8640723293)
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.compat.mk>
14.include <bsd.own.mk>
15.MAIN: all
16
17.if defined(.PARSEDIR)
18.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no"
19# this tells lib.mk and prog.mk to not actually build anything
20_SKIP_BUILD = not building at level 0
21.endif
22.endif
23
24.endif	# !target(__<bsd.init.mk>__)
25