2000-06-07 06:01:15 +08:00
|
|
|
#
|
|
|
|
# PostgreSQL top level makefile
|
|
|
|
#
|
2000-06-15 02:18:01 +08:00
|
|
|
# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.5 2000/06/14 18:17:24 petere Exp $
|
2000-06-07 06:01:15 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = .
|
|
|
|
|
|
|
|
|
|
|
|
all:
|
2000-06-08 07:09:18 +08:00
|
|
|
$(MAKE) -C src all
|
2000-06-07 06:01:15 +08:00
|
|
|
@echo "All of PostgreSQL successfully made. Ready to install."
|
|
|
|
|
|
|
|
install:
|
2000-06-08 07:09:18 +08:00
|
|
|
$(MAKE) -C src install
|
2000-06-07 06:01:15 +08:00
|
|
|
@cat $(srcdir)/register.txt
|
|
|
|
|
|
|
|
clean:
|
2000-06-08 07:09:18 +08:00
|
|
|
$(MAKE) -C src clean
|
2000-06-07 06:01:15 +08:00
|
|
|
|
|
|
|
distclean:
|
2000-06-11 02:02:12 +08:00
|
|
|
-$(MAKE) -C src distclean
|
2000-06-07 06:01:15 +08:00
|
|
|
-rm -f config.cache config.log config.status GNUmakefile
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all install clean distclean
|
2000-06-11 02:02:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
|
|
|
|
CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
|
|
|
|
|
2000-06-15 02:18:01 +08:00
|
|
|
$(top_builddir)/config.status: $(top_srcdir)/configure
|
|
|
|
cd $(top_builddir) && ./config.status --recheck
|
|
|
|
|
2000-06-11 02:02:12 +08:00
|
|
|
|
2000-06-15 02:18:01 +08:00
|
|
|
# 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.
|
2000-06-11 02:02:12 +08:00
|
|
|
|
2000-06-15 02:18:01 +08:00
|
|
|
AUTOCONF = autoconf
|
2000-06-12 02:43:52 +08:00
|
|
|
|
2000-06-15 02:18:01 +08:00
|
|
|
# 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
|
2000-06-12 02:43:52 +08:00
|
|
|
|
2000-06-15 02:18:01 +08:00
|
|
|
# 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 $^ > $@
|