bsd.mkopt.mk: Avoid warning from makeman

Setting WITHOUT_X where X is a __REQUIRED_OPTION produces a warning.

This occurred during makeman's `make showconfig` invocatation, but the
warning serves no purpose there, and clutters makeman's output.  Skip
the warning for the showconfig target used by makeman.

Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49123

(cherry picked from commit 085c0641a2ea0dee2c58b5bc6e62790a164ebd52)
This commit is contained in:
Ed Maste 2025-02-24 09:51:31 -05:00
parent 859aa726fb
commit 586bdc6f75

View file

@ -58,7 +58,7 @@ MK_${var}:= yes
# step towards removing the options entirely.
#
.for var in ${__REQUIRED_OPTIONS}
.if defined(WITHOUT_${var})
.if defined(WITHOUT_${var}) && !make(showconfig)
.warning WITHOUT_${var} option ignored: it is no longer supported
.endif
MK_${var}:= yes