summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-09 13:59:06 +0000
committerjlam <jlam>2006-06-09 13:59:06 +0000
commit2de1e440d8b26a98a76f16e73d38e67e4d8c0c49 (patch)
treebc3ee1d8414671473ac53f6468293fea0563cf1d /mk/install
parentf968cd192d9c619aaa9fb72626c3f892e34c6209 (diff)
downloadpkgsrc-2de1e440d8b26a98a76f16e73d38e67e4d8c0c49.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/install')
-rw-r--r--mk/install/install.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/install/install.mk b/mk/install/install.mk
index 8b37216333c..960794e69a9 100644
--- a/mk/install/install.mk
+++ b/mk/install/install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: install.mk,v 1.5 2006/06/08 15:47:10 jlam Exp $
+# $NetBSD: install.mk,v 1.6 2006/06/09 13:59:08 jlam Exp $
######################################################################
### install (PUBLIC)
@@ -133,6 +133,7 @@ _INSTALL_ALL_TARGETS+= post-install-script
_INSTALL_ALL_TARGETS+= register-pkg
.endif
_INSTALL_ALL_TARGETS+= privileged-install-hook
+_INSTALL_ALL_TARGETS+= error-check
.if empty(CHECK_SHLIBS:M[nN][oO])
privileged-install-hook: check-shlibs