diff options
author | rillig <rillig@pkgsrc.org> | 2008-02-13 09:11:01 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-02-13 09:11:01 +0000 |
commit | 400cc4000da9d4310b65831fb3de047abfb61290 (patch) | |
tree | cb8a705e7d9945fc6b52e99b71c8fc240c3ee034 /mk/tools | |
parent | 196f8b9d0c272c61c458d4068031444c482a55de (diff) | |
download | pkgsrc-400cc4000da9d4310b65831fb3de047abfb61290.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} |