summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2008-12-30 23:41:30 +0100
committerChristoph Hellwig <hch@brick.lst.de>2008-12-30 23:41:30 +0100
commitd7c50a07c78436bd19be0a061ab0fdd9cf66c4c2 (patch)
treea8f488e306cddd477c72703768685a02480734b5 /include
parent23408a2075226751e104344ce33e89859cd181fb (diff)
downloadattr-d7c50a07c78436bd19be0a061ab0fdd9cf66c4c2.tar.gz
ix 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>
Diffstat (limited to 'include')
-rw-r--r--include/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/Makefile b/include/Makefile
index 7be65fd..3fde1fc 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -11,13 +11,15 @@ HFILES = $(INST_HFILES) misc.h walk_tree.h
LSRCFILES = builddefs.in buildmacros buildrules config.h.in
LDIRT = $(INCDIR)
-default:
- rm -f $(INCDIR)
- $(LN_S) . $(INCDIR)
+$(INCDIR):
+ $(LN_S) . $@
+
+default: $(INCDIR)
include $(BUILDRULES)
install-dev: default
$(INSTALL) -m 755 -d $(PKG_INC_DIR)
$(INSTALL) -m 644 $(INST_HFILES) $(PKG_INC_DIR)
+
install install-lib: