From: Tom Lane Date: Sat, 1 May 2010 21:31:17 +0000 (+0000) Subject: Install hack workaround for failure of 'make all' in VPATH builds. X-Git-Tag: REL9_0_BETA2~188 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=170456c9d86688ee79363699aa51331f60e8b59e;p=thirdparty%2Fpostgresql.git Install hack workaround for failure of 'make all' in VPATH builds. It appears that gmake gets confused if postgres.sgml is not present in the working directory, and instantiates some default rule or other that would let postgres.sgml be built from postgres.xml. I haven't been able to track down exactly where that's coming from, but the problem can be dodged by specifying srcdir explicitly in the rule for postgres.xml. Per report from Vladimir Kokovic. --- diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 12cb38bb67c..188afc13a0d 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -2,7 +2,7 @@ # # PostgreSQL documentation makefile # -# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.141 2010/05/01 18:15:07 tgl Exp $ +# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.142 2010/05/01 21:31:17 tgl Exp $ # #---------------------------------------------------------------------------- @@ -222,7 +222,10 @@ regress_README.html: regress.sgml ## XSLT processing ## -postgres.xml: postgres.sgml $(ALMOSTALLSGML) +# For obscure reasons, gmake 3.81 complains about circular dependencies +# if we try to do "make all" in a VPATH build without the explicit +# $(srcdir) on the postgres.sgml dependency in this rule. gmake bug? +postgres.xml: $(srcdir)/postgres.sgml $(ALMOSTALLSGML) $(OSX) -D. -x lower $< >postgres.xmltmp $(PERL) -p -e 's/\[(amp|copy|egrave|gt|lt|mdash|nbsp|ouml|pi|quot|uuml) *\]/\&\1;/g;' \ -e '$$_ .= qq{\n} if $$. == 1;' \