Parallel build fix. Multiword variables on the target side of a : get
authorAdam Jackson <ajax@freedesktop.org>
Sat, 8 Jan 2005 03:16:04 +0000 (03:16 +0000)
committerAdam Jackson <ajax@freedesktop.org>
Sat, 8 Jan 2005 03:16:04 +0000 (03:16 +0000)
expanded into individual rules for each word, so parallel builds will
start multiple instances to create the server/ symlinks and fail when they
already exist.

src/mesa/drivers/dri/r200/Makefile

index 406ade22e239ba8a0613095c7f33071c77c2e50e..f50ccd13895ab00eefd41f2955f362b9f2c79efa 100644 (file)
@@ -57,9 +57,11 @@ include ../Makefile.template
 
 #INCLUDES += -I../radeon/server
 
-$(SYMLINKS):
+server:
        mkdir -p server
-       for i in $(SYMLINKS) ; do rm -f $$i && test -f ../radeon/$$i && ln -s ../../radeon/$$i $$i ; done
+
+$(SYMLINKS): server
+       @[ -e $@ ] || ln -sf ../../radeon/$@ server/
 
 symlinks: $(SYMLINKS)