aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/Makefile
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2005-01-08 03:16:04 +0000
committerAdam Jackson <[email protected]>2005-01-08 03:16:04 +0000
commitccaa15a0812f3cdac5669cb315e5e7e9eaba9685 (patch)
treee1879849556335e2f67926382c1173dd7eadaf0b /src/mesa/drivers/dri/r200/Makefile
parentf1481aa2d7fe24dfe03e3c54305e4ed8111aae9f (diff)
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.
Diffstat (limited to 'src/mesa/drivers/dri/r200/Makefile')
-rw-r--r--src/mesa/drivers/dri/r200/Makefile6
1 files 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)