diff options
author | rillig <rillig@pkgsrc.org> | 2007-07-20 14:08:19 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-07-20 14:08:19 +0000 |
commit | e0a28fcf8cdafd8ba9c122406e35be7f1cac7f3d (patch) | |
tree | 40af6ec04bf53e06440a6229e97029c92485dcd7 /mk/misc/warnings.mk | |
parent | d6b01f775a9255019b79f62978d9fcc902ceb48b (diff) | |
download | pkgsrc-e0a28fcf8cdafd8ba9c122406e35be7f1cac7f3d.tar.gz |
Added code to display warnings at package build time. Among others, this
will be used for the licenses.
Diffstat (limited to 'mk/misc/warnings.mk')
-rw-r--r-- | mk/misc/warnings.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mk/misc/warnings.mk b/mk/misc/warnings.mk new file mode 100644 index 00000000000..e2447dbd897 --- /dev/null +++ b/mk/misc/warnings.mk @@ -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 |