Add .NOTMAIN to guard targets

Avoid make mistaking a guard target for the .MAIN one.
This commit is contained in:
Simon J. Gerraty 2025-04-19 12:57:41 -07:00
parent a9f5dcf829
commit cf5f0744cd
24 changed files with 24 additions and 24 deletions

View file

@ -25,7 +25,7 @@
# output on stdout.
.if !target(__<bsd.clang-analyze.mk>__)
__<bsd.clang-analyze.mk>__:
__<bsd.clang-analyze.mk>__: .NOTMAIN
.include <bsd.compiler.mk>

View file

@ -1,6 +1,6 @@
.if !targets(__<${_this:T}>__)
__<${_this:T}>__:
__<${_this:T}>__: .NOTMAIN
.include <bsd.compat.pre.mk>

View file

@ -1,5 +1,5 @@
.if !targets(__<${_this:T}>__)
__<${_this:T}>__:
__<${_this:T}>__: .NOTMAIN
_ALL_LIBCOMPATS:= 32

View file

@ -40,7 +40,7 @@
#
.if !target(__<bsd.compiler.mk>__)
__<bsd.compiler.mk>__:
__<bsd.compiler.mk>__: .NOTMAIN
.include <bsd.opts.mk>

View file

@ -8,7 +8,7 @@
. error bsd.dirs.mk must be included after bsd.confs.mk.
. endif
__<bsd.confs.mk>__:
__<bsd.confs.mk>__: .NOTMAIN
CONFGROUPS?= CONFS

View file

@ -2,7 +2,7 @@
# Directory permissions management.
.if !target(__<bsd.dirs.mk>__)
__<bsd.dirs.mk>__:
__<bsd.dirs.mk>__: .NOTMAIN
# List of directory variable names to install. Each variable name's value
# must be a full path. If non-default permissions are desired, <DIR>_MODE,
# <DIR>_OWN, and <DIR>_GRP may be specified.

View file

@ -8,7 +8,7 @@
.error bsd.dirs.mk must be included after bsd.files.mk.
.endif
__<bsd.files.mk>__:
__<bsd.files.mk>__: .NOTMAIN
FILESGROUPS?= FILES

View file

@ -6,7 +6,7 @@
# MK_FOO variables.
.if !target(__<bsd.init.mk>__)
__<bsd.init.mk>__:
__<bsd.init.mk>__: .NOTMAIN
.include <bsd.opts.mk>
.-include "local.init.mk"

View file

@ -4,7 +4,7 @@
.include <bsd.linker.mk>
.include <bsd.compat.pre.mk>
__<bsd.lib.mk>__:
__<bsd.lib.mk>__: .NOTMAIN
.if defined(LIB_CXX) || defined(SHLIB_CXX)
_LD= ${CXX}

View file

@ -25,7 +25,7 @@
#
.if !target(__<bsd.linker.mk>__)
__<bsd.linker.mk>__:
__<bsd.linker.mk>__: .NOTMAIN
_ld_vars=LD $${_empty_var_}
.if !empty(_WANT_TOOLCHAIN_CROSS_VARS)

View file

@ -38,7 +38,7 @@
#
.if !target(__<bsd.obj.mk>__)
__<bsd.obj.mk>__:
__<bsd.obj.mk>__: .NOTMAIN
.include <bsd.own.mk>
# This is also done in bsd.init.mk

View file

@ -30,7 +30,7 @@
#
.if !target(__<bsd.opts.mk>__)
__<bsd.opts.mk>__:
__<bsd.opts.mk>__: .NOTMAIN
.if !defined(_WITHOUT_SRCCONF)
#

View file

@ -146,7 +146,7 @@
# SYMLINKMODE Symbolic link mode [755]
.if !target(__<bsd.own.mk>__)
__<bsd.own.mk>__:
__<bsd.own.mk>__: .NOTMAIN
.include <bsd.opts.mk> # options now here or src.opts.mk

View file

@ -33,7 +33,7 @@
#
.if !target(__<bsd.subdir.mk>__)
__<bsd.subdir.mk>__:
__<bsd.subdir.mk>__: .NOTMAIN
.if ${MK_AUTO_OBJ} == "no"
_obj= obj

View file

@ -1,6 +1,6 @@
.if !target(__<bsd.symver.mk>__)
__<bsd.symver.mk>__:
__<bsd.symver.mk>__: .NOTMAIN
.include <bsd.init.mk>

View file

@ -7,7 +7,7 @@
.include <bsd.init.mk>
__<bsd.test.mk>__:
__<bsd.test.mk>__: .NOTMAIN
# Third-party software (kyua, etc) prefix.
LOCALBASE?= /usr/local

View file

@ -40,7 +40,7 @@ DIRDEPS_FILTER.host = \
# since they are never installed.
# Cheat for including src.libnames.mk
__<bsd.init.mk>__:
__<bsd.init.mk>__: .NOTMAIN
# Pull in _INTERNALLIBS
.include <src.libnames.mk>

View file

@ -1,6 +1,6 @@
.if !target(__${_this}__)
__${_this}__:
__${_this}__: .NOTMAIN
.if ${.MAKE.MODE:Mmeta*} != ""
.if !empty(SUBDIR) && !defined(LIB) && !defined(PROG) && ${.MAKE.MAKEFILES:M*bsd.prog.mk} == ""

View file

@ -1,6 +1,6 @@
.if !target(__netbsd_tests.test.mk__)
__netbsd_tests.test.mk__:
__netbsd_tests.test.mk__: .NOTMAIN
TESTSRC?= ${SRCTOP}/contrib/netbsd-tests/${RELDIR:H}

View file

@ -1,6 +1,6 @@
.if !target(__<src.init.mk>__)
__<src.init.mk>__:
__<src.init.mk>__: .NOTMAIN
.if !target(buildenv)
buildenv: .PHONY

View file

@ -7,7 +7,7 @@
.endif
.if !target(__<src.libnames.mk>__)
__<src.libnames.mk>__:
__<src.libnames.mk>__: .NOTMAIN
.include <src.opts.mk>

View file

@ -5,7 +5,7 @@
# system.
.if !target(__<src.lua.mk>__)
__<src.lua.mk>__:
__<src.lua.mk>__: .NOTMAIN
.include <bsd.own.mk>

View file

@ -29,7 +29,7 @@
#
.if !target(__<src.opts.mk>__)
__<src.opts.mk>__:
__<src.opts.mk>__: .NOTMAIN
.include <bsd.own.mk>

View file

@ -21,5 +21,5 @@ SERVICES_MKDB_CMD?= services_mkdb
CAP_MKDB_CMD?= cap_mkdb
TIC_CMD?= tic
__<src.tools.mk>__:
__<src.tools.mk>__: .NOTMAIN
.endif # !target(__<tools>__)