From 5821c0669819ba2f9f227b1d2e4caae4e6e92a56 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 30 Mar 2006 18:06:17 +0000 Subject: Avoid extra stat() calls by not repeatedly checking whether a file exists on the disk -- we can just check whether a variable defined by find-files.mk is "__nonexistent__" or not. --- x11/Xcomposite/builtin.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x11/Xcomposite') diff --git a/x11/Xcomposite/builtin.mk b/x11/Xcomposite/builtin.mk index 53c51ee2e04..52d643625b3 100644 --- a/x11/Xcomposite/builtin.mk +++ b/x11/Xcomposite/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.9 2005/06/03 19:12:49 jlam Exp $ +# $NetBSD: builtin.mk,v 1.10 2006/03/30 18:06:19 jlam Exp $ BUILTIN_PKG:= Xcomposite @@ -14,7 +14,7 @@ BUILTIN_FIND_FILES.H_XCOMPOSITE= \ ### .if !defined(IS_BUILTIN.Xcomposite) IS_BUILTIN.Xcomposite= no -. if exists(${H_XCOMPOSITE}) +. if empty(H_XCOMPOSITE:M__nonexistent__) BUILTIN_IMAKE_CHECK:= Xcomposite:BuildCompositeLibrary . include "../../mk/buildlink3/imake-check.mk" IS_BUILTIN.Xcomposite= ${BUILTIN_IMAKE_CHECK.Xcomposite} -- cgit v1.2.3