summaryrefslogtreecommitdiff
path: root/mk/misc/warnings.mk
blob: e2447dbd897cefb96ae666c57fcd5b4c5d5c46ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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