diff options
author | jlam <jlam> | 2006-03-30 18:06:17 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-03-30 18:06:17 +0000 |
commit | 4a5a7cfee21adb0d8f6bc50d3e58d70a59e041a5 (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /net/netbsd-tap | |
parent | b884195160fd50c9a83ede73dc5ebcb668e9ea8b (diff) | |
download | pkgsrc-4a5a7cfee21adb0d8f6bc50d3e58d70a59e041a5.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 'net/netbsd-tap')
-rw-r--r-- | net/netbsd-tap/builtin.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/netbsd-tap/builtin.mk b/net/netbsd-tap/builtin.mk index bc8d19347c2..ff2670ea28f 100644 --- a/net/netbsd-tap/builtin.mk +++ b/net/netbsd-tap/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.2 2005/06/01 18:03:08 jlam Exp $ +# $NetBSD: builtin.mk,v 1.3 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= netbsd-tap @@ -13,7 +13,8 @@ BUILTIN_FIND_FILES.H_NETBSD_TAP= /usr/include/net/if_tap.h ### .if !defined(IS_BUILTIN.netbsd-tap) IS_BUILTIN.netbsd-tap= no -. if empty(H_NETBSD_TAP:M${LOCALBASE}/*) && exists(${H_NETBSD_TAP}) +. if empty(H_NETBSD_TAP:M__nonexistent__) && \ + empty(H_NETBSD_TAP:M${LOCALBASE}/*) IS_BUILTIN.netbsd-tap= yes . endif .endif |