blob: a13832249ae547f13d0786f8056fb8cda511cf7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# $NetBSD: warnings.mk,v 1.2 2008/11/05 08:23:41 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."
#
# Keywords: warning warnings
#
WARNINGS?= # none
_show-warnings: .PHONY
.if !empty(WARNINGS:M*)
${RUN} for w in ${WARNINGS} ; do ${ECHO} "WARNING: $$w"; done
.endif
bootstrap-depends: _show-warnings
|