summaryrefslogtreecommitdiff
path: root/mk/internal
diff options
context:
space:
mode:
authorrillig <rillig>2006-11-26 08:37:03 +0000
committerrillig <rillig>2006-11-26 08:37:03 +0000
commit625dea412234a1e8f1443f9b49c338740cbf3e02 (patch)
tree9914f72a5e2ae6fde7d62e6c59c6783976e278e6 /mk/internal
parentf6ecd14f0a9426f2c74e5e6f6e35d35db06aa08b (diff)
downloadpkgsrc-625dea412234a1e8f1443f9b49c338740cbf3e02.tar.gz
Moved the code that checks for PKG_FAIL_REASON and PKG_SKIP reason from
the internal/ directory to misc/, since it is not really internal to pkgsrc. Fixed the case where PKG_SKIP_REASON was not noticed by the bulk builds. Added the NOT_FOR_UNPRIVILEGED and ONLY_FOR_UNPRIVILEGED variables.
Diffstat (limited to 'mk/internal')
-rw-r--r--mk/internal/pkg_fail_reason.mk41
1 files changed, 0 insertions, 41 deletions
diff --git a/mk/internal/pkg_fail_reason.mk b/mk/internal/pkg_fail_reason.mk
deleted file mode 100644
index a1b9191ff7d..00000000000
--- a/mk/internal/pkg_fail_reason.mk
+++ /dev/null
@@ -1,41 +0,0 @@
-# $NetBSD: pkg_fail_reason.mk,v 1.2 2006/11/16 09:38:53 rillig Exp $
-#
-
-# This file prints the error that are collected when the Makefiles are
-# loaded.
-#
-
-PKG_FAIL_REASON?= # none
-PKG_SKIP_REASON?= # none
-
-.PHONY: _check-pkg-fail-reason
-_check-pkg-fail-reason: .USEBEFORE
-.if defined(SKIP_SILENT)
- @${DO_NADA}
-.else
-. if !empty(PKG_FAIL_REASON:M*)
- @for str in ${PKG_FAIL_REASON}; do \
- ${ERROR_MSG} "$$str"; \
- done
-. endif
-. if !empty(PKG_SKIP_REASON:M*)
- @for str in "Skipping ${PKGNAME}:" ${PKG_SKIP_REASON}; do \
- ${WARNING_MSG} "$$str"; \
- done
-. endif
-.endif
-.if !empty(PKG_FAIL_REASON:M*)
- @${FALSE}
-.endif
-
-# All the "public" targets should be listed here.
-#
-.if !defined(NO_SKIP)
-. if !empty(PKG_FAIL_REASON) || !empty(PKG_SKIP_REASON)
-# 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 _check-pkg-fail-reason should
-# depend on the generalized target.
-check-vulnerable: _check-pkg-fail-reason
-. endif
-.endif # !NO_SKIP