summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorrillig <rillig>2008-02-13 09:11:01 +0000
committerrillig <rillig>2008-02-13 09:11:01 +0000
commite97629ecaaabb7aac68ae680348428e73e8a2c68 (patch)
treecb8a705e7d9945fc6b52e99b71c8fc240c3ee034 /mk/tools
parentfcd80ae31bffe452d5d12bbd23b7adeba625b875 (diff)
downloadpkgsrc-e97629ecaaabb7aac68ae680348428e73e8a2c68.tar.gz
Whenever a tool from TOOLS_FAIL is executed, print a useful error
message. This is much better than failing silently.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/create.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/tools/create.mk b/mk/tools/create.mk
index 0fd1a7b6204..e4796b87aaf 100644
--- a/mk/tools/create.mk
+++ b/mk/tools/create.mk
@@ -1,4 +1,4 @@
-# $NetBSD: create.mk,v 1.2 2006/07/10 08:13:37 rillig Exp $
+# $NetBSD: create.mk,v 1.3 2008/02/13 09:11:01 rillig Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -101,7 +101,9 @@ TOOLS_SCRIPT.${_t_}?= exit 1
.for _t_ in ${TOOLS_FAIL}
TOOLS_CREATE+= ${_t_}
-TOOLS_SCRIPT.${_t_}?= ${DELAYED_WARNING_MSG} "Please add USE_TOOLS+=${_t_} to the package Makefile."; exit 1
+TOOLS_SCRIPT.${_t_}?= \
+ ${DELAYED_WARNING_MSG} "Please add USE_TOOLS+=${_t_} to the package Makefile."; \
+ ${FAIL_MSG} "To use this tool, add USE_TOOLS+=${_t_} to the package Makefile."
.endfor
.for _t_ in ${TOOLS_GNU_MISSING}