freebsd-dev/share/mk/bsd.init.mk
2012-11-08 21:39:00 +00:00

25 lines
651 B
Makefile

# $FreeBSD$
# The include file <bsd.init.mk> includes ../Makefile.inc and
# <bsd.own.mk>; this is used at the top of all <bsd.*.mk> files
# that actually "build something".
.if !target(__<bsd.init.mk>__)
__<bsd.init.mk>__:
.sinclude "local.init.mk"
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
.include <bsd.compat.mk>
.include <bsd.own.mk>
.MAIN: all
.if defined(.PARSEDIR)
.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
.endif
.endif # !target(__<bsd.init.mk>__)