summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-03-09 00:39:54 +0000
committerrillig <rillig@pkgsrc.org>2007-03-09 00:39:54 +0000
commit8dd9cf3d4162913fd089809e2232b553d9841b46 (patch)
tree008807eeeda864fdd459d9968b98336e030621b9 /mk/check
parent18851a0799b64dde749a6e48d0b462fbb7cba28a (diff)
downloadpkgsrc-8dd9cf3d4162913fd089809e2232b553d9841b46.tar.gz
Renamed some more flavor-specific targets to have the form _flavor-*.
Split check-vulnerable into a general an a flavor-specific part, for consistence with all the other targets.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-vulnerable.mk29
1 files changed, 17 insertions, 12 deletions
diff --git a/mk/check/check-vulnerable.mk b/mk/check/check-vulnerable.mk
index 6bb3e096df5..4085cd6111c 100644
--- a/mk/check/check-vulnerable.mk
+++ b/mk/check/check-vulnerable.mk
@@ -1,17 +1,22 @@
-# $NetBSD: check-vulnerable.mk,v 1.3 2006/07/05 09:08:35 jlam Exp $
-
-###########################################################################
-### check-vulnerable (PRIVATE, override)
-###########################################################################
-### check-vulnerable checks for vulnerabilities in the package. This
-### should be overridden per package system flavor.
+# $NetBSD: check-vulnerable.mk,v 1.4 2007/03/09 00:39:54 rillig Exp $
+#
+# Public targets:
#
-.PHONY: check-vulnerable
-.if !target(check-vulnerable)
-check-vulnerable:
-. if defined(ALLOW_VULNERABLE_PACKAGES)
+# check-vulnerable:
+# Checks for vulnerabilities in the package.
+#
+
+.if defined(ALLOW_VULNERABLE_PACKAGES)
+check-vulnerable: .PHONY
@${DO_NADA}
. else
+check-vulnerable: .PHONY _flavor-check-vulnerable
+ @${DO_NADA}
+.endif
+
+# A package flavor does not need to implement this target, so provide a
+# default implementation.
+.if !target(_flavor-check-vulnerable)
+_flavor-check-vulnerable:
@${PHASE_MSG} "Skipping vulnerability checks."
-. endif
.endif