git: b571bcea5495 - main - bsd.subdir.mk: improve `SUBDIR.${MK_FOO}` advice
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Apr 2024 16:33:08 UTC
The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=b571bcea5495327fd210378109b0b2aed08bebc3 commit b571bcea5495327fd210378109b0b2aed08bebc3 Author: Enji Cooper <ngie@FreeBSD.org> AuthorDate: 2024-04-21 16:27:48 +0000 Commit: Enji Cooper <ngie@FreeBSD.org> CommitDate: 2024-04-21 16:30:09 +0000 bsd.subdir.mk: improve `SUBDIR.${MK_FOO}` advice - Remove superfluous whitespace by removing trailing whitespace before `\` (line continuation character) - Quote `SUBDIR.` to clarify the fact that this is a variable reference--not the end of a sentence. --- share/mk/bsd.subdir.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 95a178c04907..565af41602c0 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -125,8 +125,8 @@ SUBDIR:=${SUBDIR:u} .endif .if defined(SUBDIR.) -.error ${.CURDIR}: Found variable SUBDIR. with value "${SUBDIR.}". This was \ - probably caused by using SUBDIR.$${MK_FOO} without including \ +.error ${.CURDIR}: Found variable 'SUBDIR.' with value "${SUBDIR.}". This was\ + probably caused by using SUBDIR.$${MK_FOO} without including\ <src.opts.mk> or by using an invalid $${MK_FOO} option. .endif