pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/misc Added code to display warnings at package buil...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/53cfdedbc382
branches:  trunk
changeset: 531125:53cfdedbc382
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jul 20 14:08:19 2007 +0000

description:
Added code to display warnings at package build time. Among others, this
will be used for the licenses.

diffstat:

 mk/misc/warnings.mk |  19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 26aa6d28243f -r 53cfdedbc382 mk/misc/warnings.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/misc/warnings.mk       Fri Jul 20 14:08:19 2007 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: warnings.mk,v 1.1 2007/07/20 14:08:19 rillig Exp $
+
+# This file prints the warnings that have been detected while loading
+# the package Makefile. Whichever part of pkgsrc (user, package, system)
+# wants to add a warning can do it by appending a properly quoted shell
+# word to the WARNINGS variable.
+#
+# Example:
+#      WARNINGS+=      "[warnings.mk] This is an example warning."
+#
+
+WARNINGS?=     # none
+
+_show-warnings: .PHONY
+.if !empty(WARNINGS:M*)
+       ${RUN} for w in ${WARNINGS} ; do ${ECHO} "WARNING: $$w"; done
+.endif
+
+bootstrap-depends: _show-warnings



Home | Main Index | Thread Index | Old Index