Skip to content

Commit 42d2470

Browse files
committed
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)
1 parent 67a5f8f commit 42d2470

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/src/sgml/Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.126 2009/08/15 01:56:35 tgl Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.127 2009/08/17 21:29:30 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -118,7 +118,12 @@ $(srcdir)/HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
118118
$(srcdir)/bookindex.sgml: HTML.index
119119
LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g -i 'bookindex' -o $@ $<
120120

121-
$(srcdir)/version.sgml: $(top_builddir)/src/Makefile.global
121+
# Technically, this should depend on Makefile.global, but then
122+
# version.sgml would need to be rebuilt after every configure run,
123+
# even in distribution tarballs. So this is cheating a bit, but it
124+
# will achieve the goal of updating the version number when it
125+
# changes.
126+
$(srcdir)/version.sgml: $(top_srcdir)/configure
122127
{ \
123128
echo "<!entity version \"$(VERSION)\">"; \
124129
echo "<!entity majorversion \"$(MAJORVERSION)\">"; \

0 commit comments

Comments
 (0)