diff options
author | rillig <rillig> | 2008-02-13 09:11:01 +0000 |
---|---|---|
committer | rillig <rillig> | 2008-02-13 09:11:01 +0000 |
commit | 6075e91fc0268a212dbfc0827ac84372ee9d31a9 (patch) | |
tree | cb8a705e7d9945fc6b52e99b71c8fc240c3ee034 /mk/tools | |
parent | 8932cddb3f2ce99d73c4e4d042bada4db8698284 (diff) | |
download | pkgsrc-6075e91fc0268a212dbfc0827ac84372ee9d31a9.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.mk | 6 |
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} |