From 7e84eca891de4df59bcecc961eb93715d7eadbdb Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 9 Jun 2006 13:59:06 +0000 Subject: Introduce the capability to gather all the warnings and errors that are generated for a target and output them all at once at the conclusion of the target's invocation. The implementation is in bsd.pkg.error.mk, which defines a macro target "error-check" that will print out any non-empty warning and error files in ${WARNING_DIR} and ${ERROR_DIR} and exit appropriately if there were errors. Convert some targets that were just long sequences of ${ERROR_MSG} or ${WARNING_MSG} within a single shell statement to use the new delayed error output via error-check. Modify the compiler "fail" wrappers for C++ and Fortran to be less verbose during invocation. Instead collect the warnings and only print them at the end of the completed phase, e.g. after "configure" and/or "build" completes. --- mk/depends/depends.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mk/depends') diff --git a/mk/depends/depends.mk b/mk/depends/depends.mk index 6bb50b96dbf..d963c7ab2ac 100644 --- a/mk/depends/depends.mk +++ b/mk/depends/depends.mk @@ -1,4 +1,4 @@ -# $NetBSD: depends.mk,v 1.6 2006/06/08 15:45:06 jlam Exp $ +# $NetBSD: depends.mk,v 1.7 2006/06/09 13:59:08 jlam Exp $ ###################################################################### ### depends (PUBLIC) @@ -36,6 +36,7 @@ _REAL_DEPENDS_TARGETS+= depends-message _REAL_DEPENDS_TARGETS+= pre-depends-hook _REAL_DEPENDS_TARGETS+= depends-install _REAL_DEPENDS_TARGETS+= depends-cookie +_REAL_DEPENDS_TARGETS+= error-check .PHONY: real-depends real-depends: ${_REAL_DEPENDS_TARGETS} -- cgit v1.2.3