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