diff options
author | rillig <rillig> | 2007-03-09 00:39:54 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-03-09 00:39:54 +0000 |
commit | 0402c41d9a392b7e354ff586322b9206f37bd5f1 (patch) | |
tree | 008807eeeda864fdd459d9968b98336e030621b9 /mk/check | |
parent | 432eca22ebea1d2978961ec08c411cb7adb727f2 (diff) | |
download | pkgsrc-0402c41d9a392b7e354ff586322b9206f37bd5f1.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.mk | 29 |
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 |