Add files from parent branch HEAD:
[pkgsrc.git] / mk / check / check-vulnerable.mk
1 # $NetBSD: check-vulnerable.mk,v 1.3 2006/07/05 09:08:35 jlam Exp $
2 #
3 # Public targets:
4 #
5 # check-vulnerable:
6 #       Checks for vulnerabilities in the package.
7 #
8
9 .if defined(ALLOW_VULNERABLE_PACKAGES)
10 check-vulnerable: .PHONY
11         @${DO_NADA}
12 .  else
13 check-vulnerable: .PHONY _flavor-check-vulnerable
14         @${DO_NADA}
15 .endif
16
17 # A package flavor does not need to implement this target, so provide a
18 # default implementation.
19 .if !target(_flavor-check-vulnerable)
20 _flavor-check-vulnerable:
21         @${PHASE_MSG} "Skipping vulnerability checks."
22 .endif