diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-02-12 07:29:36 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-02-12 07:29:36 +0000 |
commit | a7dc90d9f680055c72d5ec7d1db4f6df7f8552e4 (patch) | |
tree | b30e6477758c462b3dbd835b517360582561c65b | |
parent | 79b956433060cf3e9ece4ac07444e85775e056ce (diff) | |
download | postgresql-a7dc90d9f680055c72d5ec7d1db4f6df7f8552e4.tar.gz postgresql-a7dc90d9f680055c72d5ec7d1db4f6df7f8552e4.zip |
When performing a parallel build (make -j N) with ./configure
--enable-depend it often tries to create the .deps directory twice and
bails out when it already exists due to a race condition of if doesn't
exist, then create. This patch prevents mkdir from returning an error.
Kris Jurka
-rw-r--r-- | src/Makefile.global.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 20d7a1d2554..8a8094f1124 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -1,5 +1,5 @@ # -*-makefile-*- -# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.220 2005/09/27 17:39:32 tgl Exp $ +# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.221 2006/02/12 07:29:36 momjian Exp $ #------------------------------------------------------------------------------ # All PostgreSQL makefiles include this file and use the variables it sets, @@ -536,7 +536,7 @@ df = $(DEPDIR)/$(*F) # This converts a .d file in the current directory to a .P file in the .deps # subdirectory, with the dummy targets as explained above. define postprocess-depend -@if test ! -d $(DEPDIR); then mkdir $(DEPDIR); fi +@if test ! -d $(DEPDIR); then mkdir -p $(DEPDIR); fi @cp $*.d $(df).P @sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $(df).P |