summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2013-06-21 17:07:30 +0000
committerrobert <robert@openbsd.org>2013-06-21 17:07:30 +0000
commit6c62997c0893a12739771ecd71458a3d87e7ac23 (patch)
tree1cc4c08b6626f85b5c9a24b17cb11a4b6a98229c
parenttidy up (diff)
downloadwireguard-openbsd-6c62997c0893a12739771ecd71458a3d87e7ac23.tar.xz
wireguard-openbsd-6c62997c0893a12739771ecd71458a3d87e7ac23.zip
exists() calls in make are expensive so switch to test(1) and use the shell
level to actually test for these directories in the include target idea from espie@, migrated to libstdc++-v3 as well
-rw-r--r--gnu/lib/libstdc++-v3/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/gnu/lib/libstdc++-v3/Makefile b/gnu/lib/libstdc++-v3/Makefile
index e70d0da2e91..050d73c1252 100644
--- a/gnu/lib/libstdc++-v3/Makefile
+++ b/gnu/lib/libstdc++-v3/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/lib/libstdc++/Makefile,v 1.63.2.1 2009/08/03 08:13:06 kensmith Exp $
-# $OpenBSD: Makefile,v 1.6 2010/05/15 08:21:03 robert Exp $
+# $OpenBSD: Makefile,v 1.7 2013/06/21 17:07:30 robert Exp $
.include "${.CURDIR}/Makefile.common"
@@ -610,12 +610,11 @@ CLEANFILES+= ${VERSION_MAP}
prereq: c++config.h ${THRHDRS}
-includes: prereq
+includes: prereq
.for group in ${INCSGROUPS}
-. if !exists(${${group}DIR})
- ${INSTALL} -d -o root -g bin -m 755 \
+ test -d ${${group}DIR} || \
+ ${INSTALL} -d -o root -g bin -m 755 \
${${group}DIR}
-. endif
. for f in ${${group}}
${INSTALL} -C -o root -g bin -m 644 \
${f} ${${group}DIR}/${${group}NAME_${f:T}}