aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-12-29 20:39:09 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-12-29 20:39:09 +0000
commitb05b981924aec913eb45cb0983733fa1a5b5bf9f (patch)
tree584bd901dee277f4752e01c11c8cf5135aa44506 /src
parentb3c4f03c9cc028606d43ab0a53aabb45e819d55f (diff)
downloadpostgresql-b05b981924aec913eb45cb0983733fa1a5b5bf9f.tar.gz
postgresql-b05b981924aec913eb45cb0983733fa1a5b5bf9f.zip
stamp-h needs to be made by config.status, not elsewhere, per recipe in
Autoconf manual. In particular, touching it before creating config.status is guaranteed to lose.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.global.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index ac4864126f9..f1e425a0138 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -1,5 +1,5 @@
# -*-makefile-*-
-# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.115 2000/12/16 13:03:25 petere Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.116 2000/12/29 20:39:06 tgl Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -305,15 +305,17 @@ $(top_builddir)/src/Makefile.global: $(top_srcdir)/src/Makefile.global.in $(top_
# Remake config.h from config.h.in if the latter changed.
# config.status will not change the timestamp on config.h if it
# doesn't change, so as to avoid recompiling the entire tree
-# unnecessarily. Therefore config.status will update a timestamp file
-# everytime it runs so that we don't trigger this rule everytime.
+# unnecessarily. Therefore we make config.status update a timestamp file
+# stamp-h everytime it runs, so that we don't trigger this rule everytime.
+# (We do trigger the null rule for stamp-h to config.h everytime; so it's
+# important for that rule to be null!)
#
# Of course you need to turn on dependency tracking to get any
-# dependencies on config.h
+# dependencies on config.h.
$(top_builddir)/src/include/config.h: $(top_builddir)/src/include/stamp-h
+
$(top_builddir)/src/include/stamp-h: $(top_srcdir)/src/include/config.h.in $(top_builddir)/config.status
cd $(top_builddir) && CONFIG_FILES= CONFIG_HEADERS=src/include/config.h ./config.status
- echo >$@
# When configure changes, rerun configure with the same options as
# last time. To change configure, you need to run autoconf manually.