diff options
author | rillig <rillig@pkgsrc.org> | 2006-12-03 21:47:26 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-12-03 21:47:26 +0000 |
commit | aaaa83002aacf23c9bc334eb5f9b5ed6dd23f2ac (patch) | |
tree | 551525ceed0468bfb15e548a31ae0d787c13faa1 /mk | |
parent | de113f4587128630645beb6c1d8f20acd2fd6a23 (diff) | |
download | pkgsrc-aaaa83002aacf23c9bc334eb5f9b5ed6dd23f2ac.tar.gz |
Readded the check for NO_SKIP and documented that variable.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/misc/can-be-built-here.mk | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mk/misc/can-be-built-here.mk b/mk/misc/can-be-built-here.mk index e22366c196d..93bc309f53d 100644 --- a/mk/misc/can-be-built-here.mk +++ b/mk/misc/can-be-built-here.mk @@ -1,4 +1,4 @@ -# $NetBSD: can-be-built-here.mk,v 1.1 2006/11/26 08:37:03 rillig Exp $ +# $NetBSD: can-be-built-here.mk,v 1.2 2006/12/03 21:47:26 rillig Exp $ # # This file checks whether a package can be built in the current pkgsrc # environment. It checks the following variables: @@ -8,6 +8,16 @@ # * NOT_FOR_UNPRIVILEGED, ONLY_FOR_UNPRIVILEGED # * PKG_FAIL_REASON, PKG_SKIP_REASON # +# It also depends on the following internal variables: +# +# NO_SKIP +# When defined, the checks in this file are skipped. It is called +# NO_SKIP because the code that skips builting the package should +# _not_ be run. +# +# XXX: It's weird to have three negations in such a short variable +# name. +# _CBBH_CHECKS= # none, but see below. @@ -127,7 +137,7 @@ _cbbh: @:; ${_CBBH_MSGS:@m@${ERROR_MSG} ${m} ; @} @${FALSE} -.if ${_CBBH} == "no" +.if !defined(NO_SKIP) && ${_CBBH} == "no" # FIXME: check-vulnerable is only used here because it is depended # upon by each of the "main" pkgsrc targets. Probably its name should be # generalized, and both check-vulnerable and _cbbh should depend |