git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79b9564)
When performing a parallel build (make -j N) with ./configure
2006年2月12日 07:29:36 +0000 (07:29 +0000)
2006年2月12日 07:29:36 +0000 (07:29 +0000)
--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


diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 20d7a1d255420e0e2a1e0235054061526db23e4d..8a8094f1124609114143f9432d77781a35e153f1 100644 (file)
--- 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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /