From: Adam Jackson Date: Sat, 8 Jan 2005 03:16:04 +0000 (+0000) Subject: Parallel build fix. Multiword variables on the target side of a : get X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ccaa15a0812f3cdac5669cb315e5e7e9eaba9685;p=mesa.git 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. --- 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)