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. --- archivers/bzip2/builtin.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archivers') diff --git a/archivers/bzip2/builtin.mk b/archivers/bzip2/builtin.mk index f9ecc3c43ae..8c76957760f 100644 --- a/archivers/bzip2/builtin.mk +++ b/archivers/bzip2/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.4 2005/06/27 18:17:57 minskim Exp $ +# $NetBSD: builtin.mk,v 1.5 2006/03/30 18:06:17 jlam Exp $ BUILTIN_PKG:= bzip2 @@ -14,7 +14,7 @@ BUILTIN_FIND_GREP.H_BZIP2= BZ2_ ### .if !defined(IS_BUILTIN.bzip2) IS_BUILTIN.bzip2= no -. if empty(H_BZIP2:M${LOCALBASE}/*) && exists(${H_BZIP2}) +. if empty(H_BZIP2:M__nonexistent__) && empty(H_BZIP2:M${LOCALBASE}/*) IS_BUILTIN.bzip2= yes . endif .endif -- cgit v1.2.3