From ccaa15a0812f3cdac5669cb315e5e7e9eaba9685 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Sat, 8 Jan 2005 03:16:04 +0000 Subject: [PATCH] Parallel build fix. Multiword variables on the target side of a : get 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/r200/Makefile b/src/mesa/drivers/dri/r200/Makefile index 406ade22e23..f50ccd13895 100644 --- a/src/mesa/drivers/dri/r200/Makefile +++ b/src/mesa/drivers/dri/r200/Makefile @@ -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) -- 2.30.2