From 6075e91fc0268a212dbfc0827ac84372ee9d31a9 Mon Sep 17 00:00:00 2001 From: rillig Date: Wed, 13 Feb 2008 09:11:01 +0000 Subject: Whenever a tool from TOOLS_FAIL is executed, print a useful error message. This is much better than failing silently. --- mk/tools/create.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mk/tools') 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} -- cgit v1.2.3