pkgsrc-ng/mk/check/check-vulnerable.mk
2013-09-26 17:14:40 +02:00

23 lines
540 B
Makefile

# $NetBSD: check-vulnerable.mk,v 1.5 2011/10/15 00:23:08 reed Exp $
#
# Public targets:
#
# check-vulnerable:
# Checks for vulnerabilities in the package.
#
.if defined(ALLOW_VULNERABLE_PACKAGES)
check-vulnerable: .PHONY
@${DO_NADA}
. else
check-vulnerable: .PHONY _pkgformat-check-vulnerable
@${DO_NADA}
.endif
# A package format does not need to implement this target, so provide a
# default implementation.
.if !target(_pkgformat-check-vulnerable)
_pkgformat-check-vulnerable:
@${PHASE_MSG} "Skipping vulnerability checks."
.endif