From d71a98aa8eb185cc8c26f46f2502a25cb3135389 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. --- textproc/expat/builtin.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'textproc') diff --git a/textproc/expat/builtin.mk b/textproc/expat/builtin.mk index 1465e3aeb79..7c8e5f99a45 100644 --- a/textproc/expat/builtin.mk +++ b/textproc/expat/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.9 2006/03/06 19:21:34 tv Exp $ +# $NetBSD: builtin.mk,v 1.10 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= expat @@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_EXPAT= ${X11BASE}/include/expat.h /usr/include/expat.h ### .if !defined(IS_BUILTIN.expat) IS_BUILTIN.expat= no -. if exists(${H_EXPAT}) +. if empty(H_EXPAT:M__nonexistent__) . if !empty(H_EXPAT:M${X11BASE}/) BUILTIN_IMAKE_CHECK:= expat:BuildExpatLibrary . include "../../mk/buildlink3/imake-check.mk" @@ -31,7 +31,7 @@ MAKEVARS+= IS_BUILTIN.expat ### .if !defined(BUILTIN_PKG.expat) && \ !empty(IS_BUILTIN.expat:M[yY][eE][sS]) && \ - exists(${H_EXPAT}) + empty(H_EXPAT:M__nonexistent__) BUILTIN_VERSION.expat!= \ ${AWK} '/\#define[ ]*XML_MAJOR_VERSION/ { M = $$3 } \ /\#define[ ]*XML_MINOR_VERSION/ { m = "."$$3 } \ -- cgit v1.2.3