summaryrefslogtreecommitdiff
path: root/lib/make/make.configuration
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-05 11:25:28 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-05 11:25:28 +0000
commitfc6657493f9fe023cf509ba3cf8dd949c4511570 (patch)
tree87f284a195ba0812f51345ff020211772099609f /lib/make/make.configuration
parent54c9dd799732b69152a7851f38731f74f8838d76 (diff)
Protect 'mkdir $(BUILD_DIR)' against race conditions during a parallel make.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2483 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.configuration')
-rw-r--r--lib/make/make.configuration2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration
index f5fd0a99..600bd183 100644
--- a/lib/make/make.configuration
+++ b/lib/make/make.configuration
@@ -124,7 +124,7 @@ $(CCTK_LIBDIR)/$(LIBNAME_PREFIX)%$(LIBNAME_SUFFIX): update
@echo Checking status of $(notdir $@)
# protect the following mkdir against parallel makes
if [ ! -d $(SCRATCH_BUILD) ]; then msg=`$(MKDIR) $(MKDIRFLAGS) $(SCRATCH_BUILD) 2>&1`; if [ -d $(SCRATCH_BUILD) ]; then exit 0; else echo "$$msg"; exit 1; fi; fi
- if [ ! -d $(BUILD_DIR) ]; then $(MKDIR) $(MKDIRFLAGS) $(BUILD_DIR) ; fi
+ if [ ! -d $(BUILD_DIR) ]; then msg=`$(MKDIR) $(MKDIRFLAGS) $(BUILD_DIR) 2>&1`; if [ -d $(BUILD_DIR) ]; then exit 0; else echo "$$msg"; exit 1; fi; fi
thorn_name=$(@:$(CCTK_LIBDIR)/$(LIBNAME_PREFIX)%$(LIBNAME_SUFFIX)=%); \
if [ "$$thorn_name" = "Cactus" ] ; then src_dir=$(CCTK_HOME)/src ; \
else if [ "$$thorn_name" = "CactusBindings" ] ; then src_dir=$(BINDINGS_DIR) ; \