From d7c50a07c78436bd19be0a061ab0fdd9cf66c4c2 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 30 Dec 2008 23:41:30 +0100 Subject: 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 Signed-off-by: Eric Sandeen --- include/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') 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: -- cgit v1.2.1