mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
Big warnings cleanup for Solaris/GCC. Down to about 40 now, but
we'll get there one day. Use `cat' to create aclocal.m4, not `aclocal'. Some people don't have automake installed. Only run the autoconf rule in the top-level GNUmakefile if the invoker specified `make configure', don't run it automatically because of CVS timestamp skew.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# PostgreSQL top level makefile
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.4 2000/06/11 18:43:52 tgl Exp $
|
||||
# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.5 2000/06/14 18:17:24 petere Exp $
|
||||
#
|
||||
|
||||
srcdir = @srcdir@
|
||||
@@ -30,26 +30,27 @@ distclean:
|
||||
.PHONY: all install clean distclean
|
||||
|
||||
|
||||
AUTOCONF = @AUTOCONF@
|
||||
ACLOCAL = @ACLOCAL@
|
||||
|
||||
GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
|
||||
CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
|
||||
|
||||
# This rule does not work --- what if config.status doesn't exist?
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure
|
||||
cd $(top_builddir) && ./config.status --recheck
|
||||
|
||||
# $(top_builddir)/config.status: $(top_srcdir)/configure
|
||||
# cd $(top_builddir) && ./config.status --recheck
|
||||
|
||||
# These dependencies are evil and dangerous, because they can cause make
|
||||
# to re-run autoconf and then re-run configure due to configure not
|
||||
# having a newer timestamp than configure.in after a CVS pull. Same
|
||||
# problem for aclocal timestamp skew. This solution is considerably
|
||||
# worse than the problem it was intended to solve.
|
||||
# Do not put it back or I will take it right out again --- tgl
|
||||
# These dependencies are risky because both the target and the sources
|
||||
# are in CVS and CVS doesn't preserve timestamps, thus leading to
|
||||
# unnecessary reruns of these rules.
|
||||
|
||||
# $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
|
||||
# cd $(top_srcdir) && $(AUTOCONF)
|
||||
AUTOCONF = autoconf
|
||||
|
||||
# $(top_srcdir)/aclocal.m4: $(wildcard $(top_srcdir)/config/*.m4)
|
||||
# cd $(top_srcdir) && $(ACLOCAL) -I config
|
||||
# Only use this rule if you actually said `make configure'.
|
||||
ifeq ($(MAKECMDGOALS),configure)
|
||||
$(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
|
||||
cd $(top_srcdir) && $(AUTOCONF)
|
||||
endif
|
||||
|
||||
# This one we can leave unprotected because by default nothing depends
|
||||
# on aclocal.m4. This rule is only invoked if you say `make
|
||||
# aclocal.m4' or `make configure'.
|
||||
$(top_srcdir)/aclocal.m4: $(wildcard $(top_srcdir)/config/*.m4)
|
||||
cat $^ > $@
|
||||
|
Reference in New Issue
Block a user