Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2025 22:46:42 GMT
From:      Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: abd45729ab22 - main - mk: Mark buildenv .NOTMAIN
Message-ID:  <202508082246.578Mkgk7062850@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=abd45729ab22c7b4883451002750b78e8f2c35dd

commit abd45729ab22c7b4883451002750b78e8f2c35dd
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-08-08 22:18:23 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-08-08 22:46:04 +0000

    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:          cf5f0744cd1d ("Add .NOTMAIN to guard targets")
    Reviewed by:    sjg, bdrewery
    Differential Revision:  https://reviews.freebsd.org/D51824
---
 share/mk/src.init.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/mk/src.init.mk b/share/mk/src.init.mk
index 01ea5437e5a7..fd3f3501f609 100644
--- a/share/mk/src.init.mk
+++ b/share/mk/src.init.mk
@@ -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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508082246.578Mkgk7062850>