diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-30 18:06:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-30 18:06:17 +0000 |
commit | d71a98aa8eb185cc8c26f46f2502a25cb3135389 (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /devel/cdk | |
parent | 3987a638118f7f4cad35ee461afa830350d86564 (diff) | |
download | pkgsrc-d71a98aa8eb185cc8c26f46f2502a25cb3135389.tar.gz |
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.
Diffstat (limited to 'devel/cdk')
-rw-r--r-- | devel/cdk/builtin.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/cdk/builtin.mk b/devel/cdk/builtin.mk index 11110f5f13e..372d0a1e650 100644 --- a/devel/cdk/builtin.mk +++ b/devel/cdk/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.2 2005/06/01 18:02:43 jlam Exp $ +# $NetBSD: builtin.mk,v 1.3 2006/03/30 18:06:17 jlam Exp $ BUILTIN_PKG:= cdk @@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_CDK= /usr/include/cdk/cdk.h ### .if !defined(IS_BUILTIN.cdk) IS_BUILTIN.cdk= no -. if empty(H_CDK:M${LOCALBASE}/*) && exists(${H_CDK}) +. if empty(H_CDK:M__nonexistent__) && empty(H_CDK:M${LOCALBASE}/*) IS_BUILTIN.cdk= yes . endif .endif |