git: df9974197e46 - main - Add description of WITH_META_ERROR_TARGET

From: Simon J. Gerraty <sjg_at_FreeBSD.org>
Date: Fri, 12 May 2023 16:22:30 UTC
The branch main has been updated by sjg:

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

commit df9974197e466b58d65b373fce1fecfcadbb99c2
Author:     Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2023-05-12 16:21:30 +0000
Commit:     Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2023-05-12 16:21:30 +0000

    Add description of WITH_META_ERROR_TARGET
---
 tools/build/options/WITH_META_ERROR_TARGET | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/tools/build/options/WITH_META_ERROR_TARGET b/tools/build/options/WITH_META_ERROR_TARGET
new file mode 100644
index 000000000000..069000a423cd
--- /dev/null
+++ b/tools/build/options/WITH_META_ERROR_TARGET
@@ -0,0 +1,14 @@
+.\" $FreeBSD$
+Enable the META_MODE .ERROR target.
+.Pp
+This target will copy the meta file of a failed target
+to
+.Va ERROR_LOGDIR
+(default is
+.Ql ${SRCTOP:H}/error )
+to help with failure analysis.
+Depends on
+.Va WITH_META_MODE .
+This default when
+.Va WITH_DIRDEPS_BUILD
+is set.