From: Eric Sandeen Date: Tue, 30 Dec 2008 17:19:47 +0000 (+0100) Subject: fix parallel installs in include/ dirs X-Git-Tag: v3.0.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=721ae57d66c08b4d51af6542bdd794427a575a86;p=thirdparty%2Fxfsprogs-dev.git 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 Signed-off-by: Eric Sandeen --- diff --git a/include/Makefile b/include/Makefile index c47a43b02..1c681880d 100644 --- a/include/Makefile +++ b/include/Makefile @@ -40,10 +40,10 @@ LSRCFILES += platform_defs.h.in builddefs.in buildmacros buildrules $(DKHFILES) LSRCFILES += command.h input.h path.h project.h LDIRT = xfs disk -default install : - rm -f xfs disk - $(LN_S) . xfs - $(LN_S) . disk +xfs disk: + $(LN_S) . $@ + +default install: xfs disk include $(BUILDRULES)