aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2009-08-17 21:29:30 +0000
committerPeter Eisentraut <peter_e@gmx.net>2009-08-17 21:29:30 +0000
commit42d2470c38825ce719cb867eaca54586cc4fedd5 (patch)
tree5192e3885ea32ca4db69c3aa8d8ea96efc8d9dfa
parent67a5f8ff9e168bf2ec3540b8a389efb5f46b76fc (diff)
downloadpostgresql-42d2470c38825ce719cb867eaca54586cc4fedd5.tar.gz
postgresql-42d2470c38825ce719cb867eaca54586cc4fedd5.zip
Make version.sgml depend on configure instead of Makefile.global. This
cheats a bit, but it avoids unsatisfied dependencies in distribution tarballs. (found by make distcheck)
-rw-r--r--doc/src/sgml/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index ee6e4be27e3..a46352530a9 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.126 2009/08/15 01:56:35 tgl Exp $
+# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.127 2009/08/17 21:29:30 petere Exp $
#
#----------------------------------------------------------------------------
@@ -118,7 +118,12 @@ $(srcdir)/HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
$(srcdir)/bookindex.sgml: HTML.index
LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g -i 'bookindex' -o $@ $<
-$(srcdir)/version.sgml: $(top_builddir)/src/Makefile.global
+# Technically, this should depend on Makefile.global, but then
+# version.sgml would need to be rebuilt after every configure run,
+# even in distribution tarballs. So this is cheating a bit, but it
+# will achieve the goal of updating the version number when it
+# changes.
+$(srcdir)/version.sgml: $(top_srcdir)/configure
{ \
echo "<!entity version \"$(VERSION)\">"; \
echo "<!entity majorversion \"$(MAJORVERSION)\">"; \