aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2008-12-30 23:49:09 +0100
committerChristoph Hellwig <hch@brick.lst.de>2008-12-30 23:49:09 +0100
commit089c5c1feecc388f627b9985e9c141fabb7f8f57 (patch)
tree5ac4efb377cb8693935a4466c9533625d3b1efa6
parent6a9096d0127abb2e63403215ace6245b04ed63f5 (diff)
downloaddmapi-dev-089c5c1feecc388f627b9985e9c141fabb7f8f57.tar.gz
fix parallel installs in include/ dirs
This is for http://oss.sgi.com/bugzilla/show_bug.cgi?id=759 "fix parallel issue with include/ symlinks" Doing something like "make -j2 install install-dev" would lead to a race of removing & creating symlinks in include/ Thanks to Mike for reporting & suggesting the fix. Reported-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--include/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/Makefile b/include/Makefile
index 52e466c..8e092d2 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -9,9 +9,10 @@ HFILES = dmapi.h
LSRCFILES = builddefs.in buildmacros buildrules dmapi_kern.h
LDIRT = xfs
-default install :
- rm -f xfs
- $(LN_S) . xfs
+xfs:
+ $(LN_S) . $@
+
+default install: xfs
include $(BUILDRULES)