pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/tools Whenever a tool from TOOLS_FAIL is executed, ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/573848740138
branches: trunk
changeset: 538569:573848740138
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Feb 13 09:11:01 2008 +0000
description:
Whenever a tool from TOOLS_FAIL is executed, print a useful error
message. This is much better than failing silently.
diffstat:
mk/tools/create.mk | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r f3216dfadd70 -r 573848740138 mk/tools/create.mk
--- a/mk/tools/create.mk Wed Feb 13 09:01:20 2008 +0000
+++ b/mk/tools/create.mk Wed Feb 13 09:11:01 2008 +0000
@@ -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 @@
.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}
Home |
Main Index |
Thread Index |
Old Index