[BACK]Return to warnings.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mk / misc

Annotation of pkgsrc/mk/misc/warnings.mk, Revision 1.2

1.2     ! rillig      1: # $NetBSD: warnings.mk,v 1.1 2007/07/20 14:08:19 rillig Exp $
1.1       rillig      2:
                      3: # This file prints the warnings that have been detected while loading
                      4: # the package Makefile. Whichever part of pkgsrc (user, package, system)
                      5: # wants to add a warning can do it by appending a properly quoted shell
                      6: # word to the WARNINGS variable.
                      7: #
                      8: # Example:
                      9: #      WARNINGS+=      "[warnings.mk] This is an example warning."
                     10: #
1.2     ! rillig     11: # Keywords: warning warnings
        !            12: #
1.1       rillig     13:
                     14: WARNINGS?=     # none
                     15:
                     16: _show-warnings: .PHONY
                     17: .if !empty(WARNINGS:M*)
                     18:        ${RUN} for w in ${WARNINGS} ; do ${ECHO} "WARNING: $$w"; done
                     19: .endif
                     20:
                     21: bootstrap-depends: _show-warnings

CVSweb <webmaster@jp.NetBSD.org>