summaryrefslogtreecommitdiff
path: root/mk/tools/bsd.tools.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-09 13:59:06 +0000
committerjlam <jlam@pkgsrc.org>2006-06-09 13:59:06 +0000
commit8c10d39139a31e48ae30b4909f6a27c1710c0a8c (patch)
treebc3ee1d8414671473ac53f6468293fea0563cf1d /mk/tools/bsd.tools.mk
parent0a42a052a223d1bf586ea1cdb2743b3276b2a3ff (diff)
downloadpkgsrc-8c10d39139a31e48ae30b4909f6a27c1710c0a8c.tar.gz
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.
Diffstat (limited to 'mk/tools/bsd.tools.mk')
-rw-r--r--mk/tools/bsd.tools.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/tools/bsd.tools.mk b/mk/tools/bsd.tools.mk
index 1a555248e61..f441ca5fc15 100644
--- a/mk/tools/bsd.tools.mk
+++ b/mk/tools/bsd.tools.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.tools.mk,v 1.35 2006/06/06 06:30:29 jlam Exp $
+# $NetBSD: bsd.tools.mk,v 1.36 2006/06/09 13:59:08 jlam Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -82,6 +82,7 @@ release-tools-lock: release-lock
_REAL_TOOLS_TARGETS+= tools-message
_REAL_TOOLS_TARGETS+= tools-vars
_REAL_TOOLS_TARGETS+= override-tools
+_REAL_TOOLS_TARGETS+= error-check
.PHONY: real-tools
real-tools: ${_REAL_TOOLS_TARGETS}