mk: Mark buildenv .NOTMAIN

This file is one of a handful that can be included at the top of a
Makefile (via src.opts.mk).  Therefore, all the targets it defines
must be marked .NOTMAIN so they don't accidentally become the default
target of the Makefile.

Fixes:		cf5f0744cd ("Add .NOTMAIN to guard targets")
Reviewed by:	sjg, bdrewery
Differential Revision:	https://reviews.freebsd.org/D51824
This commit is contained in:
Dag-Erling Smørgrav
2025-08-09 00:18:23 +02:00
parent 602e98dd35
commit abd45729ab
+1 -1
View File
@@ -3,7 +3,7 @@
__<src.init.mk>__: .NOTMAIN
.if !target(buildenv)
buildenv: .PHONY
buildenv: .PHONY .NOTMAIN
${_+_}@env BUILDENV_DIR=${.CURDIR} ${MAKE} -C ${SRCTOP} buildenv
.endif