From 8b08a3fc648fb8db2792bd28bcb5423ff0ac465f Mon Sep 17 00:00:00 2001 From: dsl Date: Mon, 7 Nov 2005 22:19:34 +0000 Subject: [PATCH] We need the absolute path of the crunchgen binary in order to make the generated makefile depend on the binary. Needed for USE_TOOLS=no builds --- distrib/common/Makefile.crunch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/distrib/common/Makefile.crunch b/distrib/common/Makefile.crunch index 05682fba8a54..3882875c5ef4 100644 --- a/distrib/common/Makefile.crunch +++ b/distrib/common/Makefile.crunch @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.crunch,v 1.21 2005/09/05 20:14:08 dsl Exp $ +# $NetBSD: Makefile.crunch,v 1.22 2005/11/07 22:19:34 dsl Exp $ # # Makefile snippet to build a crunchgen(1)ed binary from the provided lists # @@ -48,7 +48,9 @@ ${CRUNCHBIN}.c: ${CRUNCHBIN}.mk ${CRUNCHBIN}.cache: ${CRUNCHBIN}.mk [ ! -f ${.TARGET} ] || touch ${.TARGET} -${CRUNCHBIN}.mk: ${CRUNCHBIN}.conf ${TOOL_CRUNCHGEN:[-1]} +CRUNCHGEN != command -v ${TOOL_CRUNCHGEN:[-1]} + +${CRUNCHBIN}.mk: ${CRUNCHBIN}.conf ${CRUNCHGEN} ${CRUNCHENV} ${TOOL_CRUNCHGEN} -f -D ${NETBSDSRCDIR} \ -L ${DESTDIR}/usr/lib -q ${CRUNCHGEN_FLAGS} ${CRUNCHBIN}.conf