]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
fix parallel installs in include/ dirs
authorEric Sandeen <sandeen@sandeen.net>
Tue, 30 Dec 2008 17:19:47 +0000 (18:19 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Tue, 30 Dec 2008 17:19:47 +0000 (18:19 +0100)
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>
include/Makefile

index c47a43b0274bde1fc5dabae09a34bcc820781f97..1c681880dbfa9c7740315c00c44db82bd4506d82 100644 (file)
@@ -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)