]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move DIRDEPS_BUILD settings to sys.dirdeps.mk
authorSimon J. Gerraty <sjg@FreeBSD.org>
Thu, 11 May 2023 23:15:04 +0000 (16:15 -0700)
committerSimon J. Gerraty <sjg@FreeBSD.org>
Thu, 11 May 2023 23:15:04 +0000 (16:15 -0700)
commitbee3d4bf8ed55260d8cfc6d168ffa1afb49ef6a8
tree4d0fd21b69ae49c27599571518a0f0563d81cf29
parentbdf6dee2a9106c0d649d55c73e38954fc341d938
Move DIRDEPS_BUILD settings to sys.dirdeps.mk

When originally implemented, there was no distinction between
DIRDEPS_BUILD and META_MODE, they were one and the same.

META_MODE however is useful by itself, but since meta.sys.mk
had lots of settings related to DIRDEPS_BUILD its use was limited
to DIRDEPS_BUILD.

Move (most) DIRDEPS_BUILD related items to sys.dirdeps.mk
so that meta.sys.mk can be used for just META_MODE.
There is of course some bluring of the lines, so settings remain
in meta.sys.mk

Add MK_META_ERROR_TARGET to enable the META_MODE .ERROR target
independent of DIRDEPS_BUILD, it copies failed .meta files to ${SB}/error
to make it easier to identify the cause of build failures.

Since sys.dirdeps.mk should be included first, most of
local.meta.sys.mk becomes local.sys.dirdeps.mk
and some other bits need to move to local.sys.dirdeps.env.mk

Also fix dirdeps.mk to not add CURDIR to DIRDEPS when it is SRCTOP.

Reviewed by: bdrewery
Differential Revision: https://reviews.freebsd.org/D40053
share/mk/dirdeps.mk
share/mk/local.meta.sys.env.mk
share/mk/local.sys.dirdeps.env.mk [new file with mode: 0644]
share/mk/local.sys.dirdeps.mk [moved from share/mk/local.meta.sys.mk with 85% similarity]
share/mk/local.sys.env.mk
share/mk/meta.sys.mk
share/mk/src.sys.obj.mk
share/mk/sys.dependfile.mk
share/mk/sys.dirdeps.mk [new file with mode: 0644]
share/mk/sys.mk