2000-06-07 02:01:15 +04:00
|
|
|
#
|
|
|
|
# PostgreSQL top level makefile
|
|
|
|
#
|
2010-01-29 04:06:18 +03:00
|
|
|
# $PostgreSQL: pgsql/GNUmakefile.in,v 1.57 2010/01/29 01:06:18 adunstan Exp $
|
2000-06-07 02:01:15 +04:00
|
|
|
#
|
|
|
|
|
2000-06-28 22:30:16 +04:00
|
|
|
subdir =
|
2000-06-07 02:01:15 +04:00
|
|
|
top_builddir = .
|
2000-08-31 20:12:35 +04:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
2000-06-07 02:01:15 +04:00
|
|
|
|
|
|
|
all:
|
2000-07-18 02:31:59 +04:00
|
|
|
$(MAKE) -C doc all
|
2000-06-08 03:09:18 +04:00
|
|
|
$(MAKE) -C src all
|
2004-07-30 16:26:40 +04:00
|
|
|
$(MAKE) -C config all
|
2000-06-07 02:01:15 +04:00
|
|
|
@echo "All of PostgreSQL successfully made. Ready to install."
|
|
|
|
|
2010-01-29 02:59:52 +03:00
|
|
|
world:
|
|
|
|
$(MAKE) -C doc html
|
|
|
|
$(MAKE) -C src all
|
|
|
|
$(MAKE) -C config all
|
|
|
|
$(MAKE) -C contrib all
|
|
|
|
@echo "PostgreSQL, contrib and HTML documentation successfully made. Ready to install."
|
|
|
|
|
2009-08-10 02:47:59 +04:00
|
|
|
html man:
|
|
|
|
$(MAKE) -C doc $@
|
|
|
|
|
2000-06-07 02:01:15 +04:00
|
|
|
install:
|
2004-10-06 12:50:02 +04:00
|
|
|
$(MAKE) -C doc $@
|
|
|
|
$(MAKE) -C src $@
|
|
|
|
$(MAKE) -C config $@
|
2003-10-14 01:39:41 +04:00
|
|
|
@echo "PostgreSQL installation complete."
|
2000-06-07 02:01:15 +04:00
|
|
|
|
2010-01-29 02:59:52 +03:00
|
|
|
install-world:
|
|
|
|
$(MAKE) -C doc install
|
|
|
|
$(MAKE) -C src install
|
|
|
|
$(MAKE) -C config install
|
|
|
|
$(MAKE) -C contrib install
|
|
|
|
@echo "PostgreSQL and contrib installation complete."
|
|
|
|
|
2009-08-08 00:50:22 +04:00
|
|
|
installdirs uninstall coverage:
|
2000-07-18 02:31:59 +04:00
|
|
|
$(MAKE) -C doc $@
|
2000-06-28 22:30:16 +04:00
|
|
|
$(MAKE) -C src $@
|
2004-07-30 16:26:40 +04:00
|
|
|
$(MAKE) -C config $@
|
2000-06-28 22:30:16 +04:00
|
|
|
|
2006-04-03 22:47:41 +04:00
|
|
|
distprep:
|
|
|
|
$(MAKE) -C doc $@
|
|
|
|
$(MAKE) -C src $@
|
|
|
|
$(MAKE) -C config $@
|
|
|
|
$(MAKE) -C contrib $@
|
|
|
|
|
2000-12-04 03:34:40 +03:00
|
|
|
# clean, distclean, etc should apply to contrib too, even though
|
|
|
|
# it's not built by default
|
|
|
|
clean:
|
|
|
|
$(MAKE) -C doc $@
|
|
|
|
$(MAKE) -C contrib $@
|
|
|
|
$(MAKE) -C src $@
|
2004-07-30 16:26:40 +04:00
|
|
|
$(MAKE) -C config $@
|
2002-03-29 20:32:55 +03:00
|
|
|
# Garbage from autoconf:
|
|
|
|
@rm -rf autom4te.cache/
|
2000-12-04 03:34:40 +03:00
|
|
|
|
|
|
|
# Important: distclean `src' last, otherwise Makefile.global
|
2000-07-18 02:31:59 +04:00
|
|
|
# will be gone too soon.
|
2000-06-28 22:30:16 +04:00
|
|
|
distclean maintainer-clean:
|
2008-03-18 19:24:50 +03:00
|
|
|
$(MAKE) -C doc $@
|
|
|
|
$(MAKE) -C contrib $@
|
|
|
|
$(MAKE) -C config $@
|
|
|
|
$(MAKE) -C src $@
|
|
|
|
rm -f config.cache config.log config.status GNUmakefile
|
2002-03-29 20:32:55 +03:00
|
|
|
# Garbage from autoconf:
|
|
|
|
@rm -rf autom4te.cache/
|
2000-06-07 02:01:15 +04:00
|
|
|
|
2000-10-03 02:21:21 +04:00
|
|
|
check: all
|
|
|
|
|
2006-08-18 23:58:05 +04:00
|
|
|
check installcheck installcheck-parallel:
|
2000-09-29 21:17:41 +04:00
|
|
|
$(MAKE) -C src/test $@
|
2000-06-07 02:01:15 +04:00
|
|
|
|
2010-01-29 02:59:52 +03:00
|
|
|
installcheck-world:
|
|
|
|
$(MAKE) -C src/test installcheck
|
|
|
|
$(MAKE) -C src/pl installcheck
|
2010-01-29 04:06:18 +03:00
|
|
|
$(MAKE) -C src/interfaces/ecpg installcheck
|
2010-01-29 02:59:52 +03:00
|
|
|
$(MAKE) -C contrib installcheck
|
|
|
|
|
2000-06-10 22:02:12 +04:00
|
|
|
GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
|
2002-03-29 20:32:55 +03:00
|
|
|
./config.status $@
|
2000-06-10 22:02:12 +04:00
|
|
|
|
|
|
|
|
2000-07-19 20:30:27 +04:00
|
|
|
##########################################################################
|
|
|
|
|
2007-02-09 18:56:00 +03:00
|
|
|
distdir = postgresql-$(VERSION)
|
|
|
|
dummy = =install=
|
|
|
|
garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
|
2000-07-19 20:30:27 +04:00
|
|
|
|
2009-11-04 00:28:10 +03:00
|
|
|
dist: $(distdir).tar.gz $(distdir).tar.bz2
|
2008-03-18 19:24:50 +03:00
|
|
|
rm -rf $(distdir)
|
2000-07-19 20:30:27 +04:00
|
|
|
|
|
|
|
$(distdir).tar: distdir
|
|
|
|
$(TAR) chf $@ $(distdir)
|
|
|
|
|
2009-11-04 00:28:10 +03:00
|
|
|
.INTERMEDIATE: $(distdir).tar
|
|
|
|
|
2009-08-15 01:37:18 +04:00
|
|
|
distdir-location:
|
|
|
|
@echo $(distdir)
|
|
|
|
|
2000-08-20 19:55:15 +04:00
|
|
|
distdir:
|
2008-03-18 19:24:50 +03:00
|
|
|
rm -rf $(distdir)* $(dummy)
|
2009-01-15 04:53:49 +03:00
|
|
|
for x in `cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
|
2000-08-20 19:55:15 +04:00
|
|
|
file=`expr X$$x : 'X\./\(.*\)'`; \
|
2000-07-19 20:30:27 +04:00
|
|
|
if test -d "$(top_srcdir)/$$file" ; then \
|
|
|
|
mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
|
|
|
|
else \
|
2000-08-20 19:55:15 +04:00
|
|
|
ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
|
|
|
|
|| cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
|
2000-07-19 20:30:27 +04:00
|
|
|
fi || exit; \
|
|
|
|
done
|
2000-08-20 19:55:15 +04:00
|
|
|
$(MAKE) -C $(distdir) distprep
|
2006-04-06 22:54:37 +04:00
|
|
|
$(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
|
|
|
|
cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
|
|
|
|
cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
|
|
|
|
cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
|
2000-07-19 20:30:27 +04:00
|
|
|
$(MAKE) -C $(distdir) distclean
|
2004-06-14 01:51:36 +04:00
|
|
|
rm -f $(distdir)/README.CVS
|
2000-07-19 20:30:27 +04:00
|
|
|
|
2009-11-04 00:28:10 +03:00
|
|
|
distcheck: dist
|
2008-03-18 19:24:50 +03:00
|
|
|
rm -rf $(dummy)
|
2000-07-19 20:30:27 +04:00
|
|
|
mkdir $(dummy)
|
2009-11-04 00:28:10 +03:00
|
|
|
$(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
|
2000-07-19 20:30:27 +04:00
|
|
|
install_prefix=`cd $(dummy) && pwd`; \
|
|
|
|
cd $(distdir) \
|
|
|
|
&& ./configure --prefix="$$install_prefix"
|
|
|
|
$(MAKE) -C $(distdir) -q distprep
|
|
|
|
$(MAKE) -C $(distdir)
|
|
|
|
$(MAKE) -C $(distdir) install
|
|
|
|
$(MAKE) -C $(distdir) uninstall
|
|
|
|
@echo "checking whether \`$(MAKE) uninstall' works"
|
2001-01-07 00:24:01 +03:00
|
|
|
test `find $(dummy) ! -type d | wc -l` -eq 0
|
2000-07-19 20:30:27 +04:00
|
|
|
$(MAKE) -C $(distdir) dist
|
|
|
|
# Room for improvement: Check here whether this distribution tarball
|
|
|
|
# is sufficiently similar to the original one.
|
2008-03-18 19:24:50 +03:00
|
|
|
rm -rf $(distdir) $(dummy)
|
2000-07-19 20:30:27 +04:00
|
|
|
@echo "Distribution integrity checks out."
|
|
|
|
|
|
|
|
.PHONY: dist distdir distcheck
|
2001-04-08 21:28:10 +04:00
|
|
|
unexport split-dist
|